[workflow-plugin] build wait for downstream job

107 views
Skip to first unread message

Nicolas Labrot

unread,
Apr 19, 2015, 5:05:34 PM4/19/15
to jenkins...@googlegroups.com
Hello,


I have two jobs 'Job 1' and 'Job 2'. 'Job 2' is a downstream job of 'Job 1' (Job 1 builds Job 2 as a post build action). 'Job 2' always fails.

I setup a Workflow project with:
build job: 'Job 1', propagate: true, wait: true

Even if propagate and wait are set to true, my workflow project never waits for 'Job 2' completion and never fails.

Did I do something wrong?

Jenkins: 1.609
Workflow: 1.5


Thanks,

Nicolas



Jesse Glick

unread,
Jun 16, 2015, 2:36:55 PM6/16/15
to jenkins...@googlegroups.com
On Sunday, April 19, 2015 at 5:05:34 PM UTC-4, Nicolas Labrot wrote:
I have two jobs 'Job 1' and 'Job 2'. 'Job 2' is a downstream job of 'Job 1' (Job 1 builds Job 2 as a post build action). 'Job 2' always fails.

Even if propagate and wait are set to true, my workflow project never waits for 'Job 2' completion

Because the post-build action to trigger another job runs asynchronously. Job 1 has completed, so the Workflow step completes. If you want Job 1 to wait for Job 2, and Job 1 is not itself a workflow, then you need to use the Parameterized Trigger plugin which offers a build _step_ that waits for a downstream build to complete.
Reply all
Reply to author
Forward
0 new messages