-
Bug
-
Resolution: Fixed
-
Major
-
None
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.
- is related to
-
JENKINS-21886 Push notifications don't work if JOB_NAME variable is in repository URL
-
- Open
-
I can confirm this bug. With Jenkins 1.572, git client plugin 1.9.2 and git plugin 2.2.2 the polling module does not resolve our "$branch" variable, set in the parametrized build configuration:
Started on Jul 17, 2014 10:50:00 AM
Using strategy: Default
[poll] Last Built Revision: Revision 2d1a169f855f69312b4b47819283063ea15c1448 (origin/master)
> git ls-remote -h git://github.com/gem/oq-nrmllib.git $branch
Done. Took 0.54 sec
No changes