Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample of multistage pipeline
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