Jenkins Pipeline having "Multiple candidate revisions" and is picking old one Jenkins Pipeline having "Multiple candidate revisions" and is picking old one git git

Jenkins Pipeline having "Multiple candidate revisions" and is picking old one


I am not a git guru, but try specifying

branches: [[name: "*/release/0.0.1"]],

instead of

branches: [[name: "release/0.0.1"]],


I think that this could be related to the use of the LocalBranch option to git checkout. If you have previously used this in your workspace:

extensions: [    [$class: 'LocalBranch', localBranch: "release/0.0.1"]]

The Jenkins Git plugin will have checked out that branch locally (rather than just using the revision that referred to at the time). After that it will have a local branch that it can match before checking if that has new changes from upstream. It sounds like the guideline would be to use LocalBranch or not but changing between them could cause problems.


I had the same problem and "resolved" it by cleaning the workspace directory the hard way, like here. With the next run the problem was gone.

Side note: "Multiple candidate revisions" might be related to this issue.