Skip to content

Latest commit

 

History

History
58 lines (50 loc) · 1.38 KB

Customize-Stages.md

File metadata and controls

58 lines (50 loc) · 1.38 KB

Customize Stages

Open .pipelines/deploy-infra.yml. The initial version is

stages:
  - stage: dev
    jobs:
    - template: templates/list-and-run.yml
      parameters:
        directory: dev
  - stage: qa
    jobs:
    - template: templates/list-and-run.yml
      parameters:
        directory: qa
  - stage: prod
    jobs:
    - template: templates/list-and-run.yml
      parameters:
        directory: prod

You can add, remove or rearrange the sequence following the sample. For instance, to add a canary stage, create canary folder first, add a .gitignore file in the folder and edit .pipelines/deploy-infra.yml to the following.

stages:
  - stage: dev
    jobs:
    - template: templates/list-and-run.yml
      parameters:
        directory: dev
  - stage: qa
    jobs:
    - template: templates/list-and-run.yml
      parameters:
        directory: qa
  - stage: canary
    jobs:
    - template: templates/list-and-run.yml
      parameters:
        directory: canary
  - stage: prod
    jobs:
    - template: templates/list-and-run.yml
      parameters:
        directory: prod

Next Step

Go back to home page

Learn more: