x
login Signup

ElectricFlow Workflow: wait for other state to complete in transition

Lets say I have 2 builds where one finishes earlier than other. The Test state depends on both builds to finish. How can I make build stage-1 to wait for build-stage2 to finish, and then run the tests?

avatar image By diwanchetan 15 asked Feb 11 at 05:30 AM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

This can be accomplished by grouping pipeline tasks where each task is calling a build pipeline. The DSL below illustrates how to do this.

 project "Wait for builds",{
     procedure "Verify Builds", {
         step "Verify Product 1", command: 'echo $[/myPipelineStageRuntime/tasks/Build Product 1/outcome]'
         step "Verify Product 2", command: 'echo $[/myPipelineStageRuntime/tasks/Build Product 2/outcome]'
     }
     pipeline "Product 1"
     pipeline "Product 2"
     pipeline "Build Master",{
         stage "Build",{
             task "Builds", taskType: "GROUP", subproject: projectName, {
                 task "Build Product 1", taskType: "PIPELINE", subpipeline: "Product 1", groupName: "Builds"
                 task "Build Product 2", taskType: "PIPELINE", subpipeline: "Product 2", groupName: "Builds"
             }
             task "Verify Builds", taskType: "PROCEDURE", subproject: projectName, subprocedure: "Verify Builds"
         }
         stage "Integrate"
     }
 }
 
avatar image By gregm 1.9k answered Apr 27 at 03:09 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.