The configuration change is the following:
When the build runs, this option is ignored. Why the option is set to false instead of true?
Jenkins version: 2.222.4
Jenkins Git plugin version: 4.6.0
CodePudding user response:
That seems a bug to be reported to the git-plugin
Jira.
The pipeline form (which is tested by the plugin) would be:
node {
checkout([ $class: 'GitSCM',
branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false,
extensions: [pruneTags(true)],
submoduleCfg: [],
userRemoteConfigs: [[url: 'remoteURL']]
])"
}
But if you are not using pipelines and relying on the classic GUI, pruneTags (boolean pruneTags)
is never called.
Since the code has not changed for the past 2 years, it could be a side-effect of your version of Jenkins 2.x.
Still, I would first upgrade the plugin to the latest 4.10.1, for testing.