-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Ubuntu Linux
In Mercurial Source Code Management, in the field "Branch", I have specified a build parameter $hgBranch.
The default value for this parametrized build is "default" so as to hit the default branch.
This works well when doing manual or time-triggered builds.
But the Poll SCM build trigger does not seem to be expanding this parameter at all, resulting in the polling to not work at all.
Here is the output of the Mercurial polling log:
Started on May 13, 2011 3:00:42 PM
[workspace] $ hg incoming --style /var/lib/jenkins/jobs/ds/workspace/tmp7235984072799037438style --no-merges --rev $hgBranch --newest-first
comparing with http://192.168.15.239/ds
abort: unknown revision '$hgBranch'!
Done. Took 1 sec
No changes
- depends on
-
JENKINS-30239 Choice parameters should be expanded in Mercurial polling
-
- Open
-
- is related to
-
JENKINS-8335 Hudson /polling build trigger doesn't seem to support parameterized builds like /buildWithParameters does
-
- Open
-
-
JENKINS-23497 variable substitution in repository URLs
-
- Open
-
I'm not sure if this should be classified as a bug or a request for enhancement, but I'm seeing a similar issue with environment variables. I'm using the EnvInject Plugin, which claims that it "Executes a setup script before or/and after a SCM checkout for a run" I've defined environment variables prior to SCM checkout called "MERCURIAL_URL" and "MERCURIAL_BRANCH". I'd like to use them under "Repository URL", "Branch" and "Repository browser/URL." I tried with just MERCURIAL_URL for "Repository URL" under various forms:
${env.MERCURIAL_URL}
${MERCURIAL_URL}
%env.MERCURIAL_URL%
%MERCURIAL_URL%
None worked and the Console Output logs clearly show the variable has not been expanded.
https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin