Sample of multistage pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
branches: | |
include: | |
- master | |
pool: "Default" | |
variables: | |
displayName: My Awesome project | |
csprojPath: MyProject.csproj | |
stages: | |
- stage: Build | |
jobs: | |
# build jobs | |
- stage: Test | |
dependsOn: Build | |
jobs: | |
# test jobs | |
- stage: Staging | |
dependsOn: Test | |
jobs: | |
# staging jobs | |
- stage: InternalDeploy | |
displayName: "[Internal] deploy" | |
dependsOn: Staging | |
jobs: | |
- deployment: | |
displayName: "Deploy XYZ" | |
environment: | |
name: Internal | |
strategy: | |
runOnce: | |
deploy: | |
steps: | |
- template: publish-template.yml | |
- stage: PoblicDeploy | |
displayName: "[Public] deploy" | |
dependsOn: Staging | |
jobs: | |
- deployment: | |
displayName: "Deploy XYZ" | |
environment: | |
name: Public | |
strategy: | |
runOnce: | |
deploy: | |
steps: | |
- template: publish-template.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment