Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
I have a job where the git refspec and branch are set to +refs/heads/${branch}:refs/remotes/origin/${branch} and the branch is set to ${branch}.
With that configuration, the SCM polling keeps triggering new builds from the same change.
If I replace the variables with their values, the SCM polling works correctly.
Attachments
Issue Links
- is related to
-
JENKINS-21886 Push notifications don't work if JOB_NAME variable is in repository URL
-
- Open
-
Code changed in jenkins
User: Mark Waite
Path:
src/main/java/hudson/plugins/git/util/GitUtils.java
src/test/java/hudson/plugins/git/GitSCMTest.java
http://jenkins-ci.org/commit/git-plugin/1dc2db5cb67c8c1c8dbd004f1c7966d3e86d4d5c
Log:
Merge pull request #250 from jakobk/2.2.x
fix
JENKINS-22009on 2.2.x branchCompare: https://github.com/jenkinsci/git-plugin/compare/63b05764bd0e...1dc2db5cb67c