Created
May 19, 2021 16:05
-
-
Save PadreSVK/dd9a272005fd6bd96dc4d4b8d1e9c456 to your computer and use it in GitHub Desktop.
Sample of multistage pipeline
This file contains hidden or 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