Build flow plugin iterate builds for a job.

9 views
Skip to first unread message

Jacek Tomaka

unread,
Jul 17, 2015, 10:14:42 PM7/17/15
to jenkins...@googlegroups.com
Hi,
I have a few jenkins job that use promoted builds plugin. Each of jobs has a bunch of parameters.

I promote builds on demand using "only when manually promoted". This is fine for single builds but usually i want to promote a set of builds (one per job) with matching parameter values.

Now i would like to create a build flow job that would for jobs A,B,C iterate builds of A,B,C to see if the value is as required and if so, kick off the promotion process.

Can this be done using build flow plugin? I mean, how do i iterate builds of a job by name?
I am thinking about something like:

builds = job("A").getBuilds()

then iterating over the builds, getting parameters of each of them and if parameters match, save it's build number to execute promotion later.

How do i solve this?
Regards.
Jacek Tomaka
Reply all
Reply to author
Forward
0 new messages