Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
Setup:
- Git Plugin 1.1.20
- a parameterized build with parameter "Branch", default "**"
- Git SCM with branch specifier "${Branch}"
- SCM polling activated
Intended behaviour:
- if any branch changes, Jenkins checks out and builds this branch
- when executed manually, the user enters the name of the branch to be built
Actual behaviour:
- no changes are detected (because the "${Branch}" value isn't resolved when polling)
Attachments
Issue Links
- is related to
-
JENKINS-8335 Hudson /polling build trigger doesn't seem to support parameterized builds like /buildWithParameters does
-
- Open
-
Code changed in jenkins
User: Nicolas De Loof
Path:
src/main/java/hudson/plugins/git/GitSCM.java
http://jenkins-ci.org/commit/git-plugin/75e4e6c2282e069bd26fbce0ead19c1c5b722c04
Log:
[FIXED JENKINS-20427] [FIXED JENKINS-14276] expanded vars in branch spec for remote polling