Dynamic Choice Parameter in Jenkinsfile

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Dynamic Choice Parameter in Jenkinsfile

Shalabh srivastava
Hi,

How to use dynamic choice parameter in jenkinsfile?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6bbf662f-0eaf-470f-9b6e-72c505fea315%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic Choice Parameter in Jenkinsfile

Trever
I don't know if this helps...https://stackoverflow.com/questions/40758132/dynamic-parameter-in-jenkinsfile/42230455#42230455

On Friday, September 8, 2017 at 9:26:06 AM UTC-7, Shalabh srivastava wrote:
Hi,

How to use dynamic choice parameter in jenkinsfile?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ea40594e-7a25-4a30-bf43-382ce3035ef4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic Choice Parameter in Jenkinsfile

Slava Dubrovskiy
In reply to this post by Shalabh srivastava

def envList = ['all']
envList.add('CE=DBAL ARC=yes')
envList.add('CE=RMQ  CACHE=REDIS')

properties([ parameters([choice(choices: envList.join("\n"), description: 'List of enviroment used for test', name: 'ENVLIST')]) ])


08.09.2017 19:24, Shalabh srivastava пишет:
Hi,

How to use dynamic choice parameter in jenkinsfile?
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6bbf662f-0eaf-470f-9b6e-72c505fea315%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
WBD,
Viacheslav Dubrovskyi

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c67b13fe-0cb7-94b4-8a6d-e5e911cb4754%40gmail.com.
For more options, visit https://groups.google.com/d/optout.