Dynamic Choice Parameter in Jenkinsfile

180 views
Skip to first unread message

Shalabh srivastava

unread,
Sep 8, 2017, 12:26:06 PM9/8/17
to Jenkins Users
Hi,

How to use dynamic choice parameter in jenkinsfile?

Trever

unread,
Sep 11, 2017, 11:57:16 AM9/11/17
to Jenkins Users

Viacheslav Dubrovskyi

unread,
Sep 14, 2017, 9:32:07 AM9/14/17
to jenkins...@googlegroups.com

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 jenkinsci-use...@googlegroups.com.
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
Reply all
Reply to author
Forward
0 new messages