Build Flow Plugin: How to get possible parameter values from Job

15 views
Skip to first unread message

Elias Kirchgässner

unread,
Feb 4, 2016, 10:30:30 AM2/4/16
to Jenkins Users
I' ve got a job which deploys the software to different customers. CUSTOMER  has e.g 4 options C1, C2, C3

Now I want to trigger a build for each of them with build flow plugin.

Pseudo code:
def customers=job("Deploy").getParameter(1).getOptions()
foreach(customer in customers){
build
("Deploy", param1:customer)
}


Is it possible to get the possible options of a parameter from a job?
Reply all
Reply to author
Forward
0 new messages