> For the complete documentation index, see [llms.txt](https://chakch007.gitbook.io/spinnaker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chakch007.gitbook.io/spinnaker/bluegreen/merge-pipelines.md).

# Merge pipelines

In the Previous exercice, we created separate pipelines for deploy and rollback. Now you have enough experience with spinnaker to create an unifed Pipeline.&#x20;

![](https://3518671160-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LycJ8Qr09hen8xsm-eC%2F-M-vKE-wMy1BGQ3M_1uT%2F-M-vQG9SX2IytUTNFwnI%2Funifed%20pipeline.png?alt=media\&token=a5c6eb29-981c-4850-8749-3fbe19fdb54b)

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&#x20;

* 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.
