Jenkins selector text should support build parameters
The Plastic SCM Jenkins plugin currently does not process build parameters for the selector text.
If this was supported, one application of this is would be to parametrize a Jenkins build such that a branch can be selected as a parameter.
-
Anonymous commented
Did this feature get added? This is vital to a proper CI infrastructure build on jenkins/plastic. The lack of this kind of integration with jenkins may cause us to move to github.
-
James commented
Sounds great!
-
Hi James, we're working on this feature. Please confirm if the following fits your needs. We will add build parameters support in PlasticSCM selector as follows:
Jenkins allows to define buid parameters: https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build
PlasticSCM now can use those parameter in selector. Example:Imagine that you define two build parameters in a project:
branchname: default value (/main)
repositoryname: default value (default)You can use those parameters in Plastic SCM selector using %parameter_name%. In this case you could write a selector:
repository '%repositoryname%'
path "/"
smartbranch '%branchname%' -
Thanks James,
Yes, you're right. We'll try to add it soon. It will probably take us a couple of weeks to schedule it. Ping us if we don't come back with a solution :-)