...
Flowchart |
---|
Job1 [label="Job 1",fillcolor="lightskyblue"] Job2 [label="Job 2",fillcolor="lightskyblue"] Job3 [label="Job 3",fillcolor="lightskyblue"] EndStateSuccessEndStateSuccess1 [label="End state: success",fillcolor="palegreen"] EndStateError1 [label="End state: error",fillcolor="lightcoral"] EndStateSuccess2 [label="End state: success",fillcolor="palegreen"] EndStateError2 [label="End state: error",fillcolor="lightcoral"] EndStateSuccess3 [label="End state: success",fillcolor="palegreen"] EndStateErrorEndStateError3 [label="End state: error",fillcolor="lightcoral"] Job1 -> EndStateSuccessEndStateSuccess1 Job1 -> EndStateErrorEndStateError1 Job2 -> EndStateSuccessEndStateSuccess2 Job2 -> EndStateErrorEndStateError2 Job3 -> EndStateSuccessEndStateSuccess3 Job3 -> EndStateErrorEndStateError3 |
Job Start Pattern based on Execution Results
- Jobs are started based on the execution result of a previous job.
- If Job 1 returns an exit code 1 then Job 2 will be executed.
- If Job 1 returns an exit code 2 then Job 3 will be executed.
Flowchart |
---|
Job1 [label="Job 1",fillcolor="lightskyblue"] Job1_Exit_Code [shape="diamond",label="Exit Code",fillcolor="white"] EndStateSuccess [label="End state: success",fillcolor="palegreen"] Job2 [label="Job 2",fillcolor="lightskyblue"] Job3 [label="Job 3",fillcolor="lightskyblue"] EndStateError [label="End state: error",fillcolor="lightcoral"] Job1 -> Job1_Exit_Code Job1_Exit_Code -> EndStateSuccess [label=" in case of exit code 0 \n End state: success "] Job1_Exit_Code -> Job2 [label=" in case of exit code 1 \n start job 2 "] Job1_Exit_Code -> Job3 [label=" in case of exit code 2 \n start job 2 "] Job1_Exit_Code -> EndStateError [label=" in case of other exit codes \n End state: error "] |