EDIT: It seems as if the MercurialSCM plugin hardcodes the update
to use the --clean
option. See this line. Anyone have any ideas what's the idea?
I have the following checkout step in my Jenkinsfile:
checkout([
scm: [
$class: "MercurialSCM",
source: "ssh://[email protected]/xxxxx/${repo}",
credentialsId: "jenkins",
revision: params[branch] ? params[branch] : "default",
subdir: (repo == "f8_root") ? "" : "aarch64/${repo}",
clean: false,
],
poll: true,
])
The argument for clean
is set to false
. But, the plugin still seems to issue an update
with the --clean
option. From the logs:
[Pipeline] checkout
[f8_fw] $ hg showconfig paths.default
[f8_fw] $ hg pull --rev feature/test-framework
pulling from ssh://[email protected]/doblesc/f8_fw
no changes found
[f8_fw] $ hg update --clean --rev feature/test-framework
How can I fix this?
clean
parameter altogether? As far as I can tell, the default is not to do a clean build. So if you omitclean
, it should follow the default behavior. Unfortunately I don't have any mercurial repositories available to test with, so I can't verify this myself.--clean
option for theupdate
. See edit to the OP.