Run subjobs but disregard the result in the parent job

99 views
Skip to first unread message

Radu Codrin Leterna

unread,
May 20, 2015, 11:05:10 AM5/20/15
to jenkins...@googlegroups.com
Hello,

I need to setup a main job that will trigger a couple sub-jobs.
I am using a multijob-phase to trigger the sub-projects. The requirement is to ignore the result from one of the sub-jobs (whether it fails or passes, the parent should just ignore that).

How can this be accomplished?
Message has been deleted

Brian Ray

unread,
May 20, 2015, 11:58:45 AM5/20/15
to jenkins...@googlegroups.com

Darnit, pasting my screenshot didn't work. Let me try again:



On Wednesday, May 20, 2015 at 8:56:42 AM UTC-7, Brian Ray wrote:
Assuming you're using the multijob plugin, be sure to set this field to Completed for this subproject (phase) in question:

Radu Codrin Leterna

unread,
May 21, 2015, 3:03:34 AM5/21/15
to jenkins...@googlegroups.com
This is not exactly what I am trying to accomplish. I need to do the following:
1. Have one main job with 5 sub-jobs in a MultiJob Phase
2. If one particular sub-job fails, just ignore that result, run all other sub-jobs and DO NOT MARK the main job as failed based on that particular sub-job result.

Not sure if Jenkins can do that, even with the help of plugins. I might have to modify the sub-job to PASS every time... so it does not mark the parent as FAILED.

Brian Ray

unread,
May 22, 2015, 12:28:45 PM5/22/15
to jenkins...@googlegroups.com
Aha, yes the switch in my screenshot only satisfies the first part of 2. Downstream subjobs run but the parent job still is marked as FAILED--at least in the multijob I'm working with.

There doesn't seem to be another switch to suppress the subjob's failure bubbling up to the overall status in the parent.
Reply all
Reply to author
Forward
0 new messages