编辑:,似乎MercurialSCM插件将update硬编码为使用--clean选项。见这条线。有人有什么想法吗?
在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我怎么才能解决这个问题?
发布于 2019-01-31 17:17:26
https://stackoverflow.com/questions/54444837
复制相似问题