Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
Since updating from 2.0.1 to 2.0.3, a job which uses tags containing a slash as "branch" does not work anymore (rel/x.y.z-... in my case)
I my case, a sepate job creates a release tag (refs/tags/rel/my-tag).
The job that stopped to work tries to check out this given tag (using a parameter: so the branch field contains the value: rel/$version)
Using git plugin 2.0.1, this works. Using git plugin 2.0.3 the checkout attempt results in "Couldn't find any revision to build. Verify the repository and branch configuration for this job."
Downgrading to 2.0.1 solves the problem.
The problem has already been discussed in JENKINS-14026, but the applied fix only works for slash-less tags
Attachments
Issue Links
- is duplicated by
-
JENKINS-21978 Couldn't find any revision to build. Verify the repository and branch configuration for this job.
-
- Closed
-
-
JENKINS-22186 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
-
- Closed
-
Code changed in jenkins
User: Stephan Pauxberger
Path:
src/main/java/hudson/plugins/git/util/DefaultBuildChooser.java
http://jenkins-ci.org/commit/git-plugin/c7dae80b85c19acec2e52783cdc8335681d816e5
Log:
JENKINS-21952Resolve tags with slashesIf no revisions are found, try to use the branch as explicit reference.
This could be a tag rel/my-tags or any other explicit reference like a
gerrit changeset (refs/changes/xx/yy/z).