I am working in Jenkins. I have one job setup. In which I have 4 promotions like dev qa staging and prod. We have a choice parameter set in third promotion. And depending on the value selected in 3rd promotion I want to execute 4th promotion.Is there a way to pass parameters from 3rd promotion to 4th in the same job.
Asked
Active
Viewed 319 times
1
-
the promotion is a parameter? take a look at the answer for a similar question here http://stackoverflow.com/questions/42666321/how-can-i-get-all-build-numbers-of-particular-job-in-jenkins-using-groovy-script/42871619#42871619 let me know if it helped. – Tidhar Klein Orbach Mar 23 '17 at 06:39
-
while approving third promotion approver selects one value for the choice parameter. That value of the parameter I want to pass to the next promotion. – Saga Mar 23 '17 at 06:59
-
sorry, it's not clear what you mean by promotion – Tidhar Klein Orbach Mar 23 '17 at 07:01
-
After the job is built successfully.I have configured promotions to promote/deploy code in different environments.Through "promote builds when" checkbox in job configuration page. – Saga Mar 23 '17 at 08:20
-
@Saga Did you ever find a solution? – Ivory Micky Nov 19 '17 at 17:03