Merge pipelines
Last updated
Was this helpful?
Last updated
Was this helpful?
In the Previous exercice, we created separate pipelines for deploy and rollback. Now you have enough experience with spinnaker to create an unifed Pipeline.
This some tips to help you to achieve this exercice:
Create a new step. the type of this step is Manual judgement
You can name it Choose Action
In the judgement input section add two options: deploy and rollback
Add new step. the type of this step is Check Preconditions. This stage depend on The manual judgement.
Add Precondition:
Check: Expression
Expression: ${#judgment(<YOUR_MANUAL_JUGEMENT_STAGE>). equals('deploy')}
Add new step. the type of this step is Check Preconditions. This stage depend on The manual judgement.
Add Precondition:
Check: Expression
Expression: ${#judgment(<YOUR_MANUAL_JUGEMENT_STAGE>). equals('rollback')}
You can recreate your previous stage (Deploy and Rollback) after each precondition.