Changing parent job status depending on downstream jobs results

23 views
Skip to first unread message

Akhil Prem

unread,
Nov 4, 2011, 1:13:03 AM11/4/11
to Jenkins Users
Hi,

I have a parent job (say Test_1) in Jenkins which checks out code from
Subversion and builds it. There are two downstream jobs related to
Test_1 as follows:

Test_1 --> Test_Child_1 --> Test_Child_2

I want the Test_1 job's status ball to indicate success (green) only
if all jobs in this workflow succeed. Any suggestions on how I can
implement this?

I tried the 'Promote Builds' plugin but its not quite what I'm looking
for.

Didier Durand

unread,
Nov 4, 2011, 1:35:15 AM11/4/11
to Jenkins Users
Hi,

This plugin https://wiki.jenkins-ci.org/display/JENKINS/BuildResultTrigger+Plugin
used by a fourth job (let's call it "Result") that you would just
create to monitor the others should do want you want.

Then you would monitor the status ball of Result to see what you want.

regards

didier

Akhil Prem

unread,
Nov 4, 2011, 2:01:50 AM11/4/11
to Jenkins Users
Hi,

Thanks for the suggestion. I'll try it out. But the problem here is
that I have a couple of dozen parent jobs like Test_1 and this
approach would mean that I would have to create that many additional
jobs just to see the desired kind of result.

Regards,
Akhil

On Nov 4, 10:35 am, Didier Durand <durand.did...@gmail.com> wrote:
> Hi,
>
> This pluginhttps://wiki.jenkins-ci.org/display/JENKINS/BuildResultTrigger+Plugin

danny staple

unread,
Nov 4, 2011, 3:11:43 AM11/4/11
to jenkins...@googlegroups.com

We have previously had something like that in our setup. We'd use a parameterized trigger including the build tag of the upstream job. The child would then use a snippet of groovy in the cli to alter the status and description of the parent.

typed on my phone expect typos...

Reply all
Reply to author
Forward
0 new messages