编辑:似乎MercurialSCM插件将update
硬编码为使用--clean
选项。参见this line。有人有什么主意吗?
我的Jenkinsfile中有以下结帐步骤:
checkout([
scm: [
$class: "MercurialSCM",
source: "ssh://hg@bitbucket.org/xxxxx/${repo}",
credentialsId: "jenkins",
revision: params[branch] ? params[branch] : "default",
subdir: (repo == "f8_root") ? "" : "aarch64/${repo}",
clean: false,
],
poll: true,
])
clean
的参数设置为false
。但是,该插件似乎仍然使用update
选项发出--clean
。从日志中:
[Pipeline] checkout
[f8_fw] $ hg showconfig paths.default
[f8_fw] $ hg pull --rev feature/test-framework
pulling from ssh://hg@bitbucket.org/doblesc/f8_fw
no changes found
[f8_fw] $ hg update --clean --rev feature/test-framework
我该如何解决?
答案 0 :(得分:1)