-
New Feature
-
Resolution: Unresolved
-
Major
-
None
I'd like to use a Choice Parameter to select the Mercurial URL to clone from. Something like:
repository=foo
Mercurial URL: http://server/${repository}
but the variable doesn't get substituted:
abort: HTTP Error 404: Not Found
ERROR: Failed to clone http://server/${repository}
Searching the bug database I found JENKINS-9686 which is kind of related. A quick look at the code tells me this is just not implemented but supporting it seems trivial.
- is related to
-
JENKINS-9686 Mercurial polling does not expand parameters/tokens
-
- Resolved
-
Could be supported. Doing this mostly defeats the purpose of using the Mercurial plugin at all, as opposed to just adding a shell step to run hg clone directly, since changelogs and updates and polling would not work in such a job. I am guessing that what you really want to do is to create a series of jobs sharing mostly the same configuration but using different repository URLs, which is better accomplished with other plugins: Templates (if using Jenkins Enterprise), or Job DSL, etc.