Details
-
Type:
New Feature
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Won't Fix
-
Component/s: pipeline-build-step-plugin
-
Labels:None
-
Similar Issues:
Description
Given a pipeline script, I configure to execute a build step to build a (existing) job:
build job: 'Project-Build-Job1_Kickoff', wait: true
The job is triggered successfully, and the pipeline waits for its completion. But, the called build job has a post-build action defined of kind "trigger parameterized build on other project". The pipeline does not wait for the downstream build, only for the first one in the chain which is referenced by name in the pipeline script. It is expected that the existing functionality is used and embedded "as is", thus pipeline waits for completion of complete downstream chain.
Update: this works as a sequence of build jobs linked with Post Build Actions. Triggering the first one via Pipeline, the downstreamed ones are triggered as well, but the Pipeline does not block until completion. This is critical because this prevents migration.
Attachments
Issue Links
- is duplicated by
-
JENKINS-28021 'build' does not wait downstreams job to complete
-
- Resolved
-
As designed—you should either make the immediate downstream project use a blocking trigger, or remove the triggers from the freestyle projects entirely and use Pipeline to orchestrate the whole thing—though it would be useful to have such an option for integration with existing freestyle project chains.