Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When you run a pipeline the execution of that run pauses before entering a stage that uses the environment. Each stage’s environment requirements are specified using the environment key as a property of a deployment job. The example below is taken from the pipeline that ships with MettleCI where the environment name is parameterised:

Code Block
...
jobs:
  - deployment: Deploy_${{ parameters.EnvironmentID }}
    displayName: Deploy to ${{ parameters.EnvironmentName }}
    pool: 'My Agent Pool Name'
    environment: ${{ parameters.EnvironmentName }}
    strategy:
      runOnce:
        deploy:
          steps:
            ...

...

On this page you can click Review to display the approval dialog where you can enter a comment before clocking clicking Approve or Reject.

...

If you have configured Azure DevOps Teams Integration you will also receive a post in your Teams channel from which you can also submit your approval by clicking Approve:

...