-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapprovals.yml
53 lines (51 loc) · 1.7 KB
/
approvals.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Fan-out, fan-in
# Feature flags for checkpoints/environments UI to work -
# exec prc_SetRegistryValue 1, '#\FeatureAvailability\Entries\PipelineChecks.DisableApprovalsUI\AvailabilityState\', '0'
# exec prc_SetRegistryValue 1, '#\FeatureAvailability\Entries\DistributedTask.ResourceApprovals\AvailabilityState\', '1'
# exec prc_SetRegistryValue 1, '#\FeatureAvailability\Entries\DistributedTask.Environments\AvailabilityState\', '1'
# exec prc_SetRegistryValue 1, '#\FeatureAvailability\Entries\DistributedTask.EnableProviderPhase\AvailabilityState\', '1'
# Enable toggle "Approvals for multi-stage pipelines"
stages:
- stage: build_test
jobs:
- job: build_test
pool: default
steps:
- script: echo Build!
- stage: deploy_east_with_deployment
dependsOn: build_test
jobs:
- deployment: deploy_to_east_deployment
pool: default
environment: test
strategy: # runOnce/blue green/rolling/canary, with lifecycle hooks viz, pre/post healthcheck, swap etc
runOnce: # default strategy
deploy:
steps:
- script: echo deploy web pkg
- job: deploy_to_east
pool: default
steps:
- script: ping bing.com -n 500
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
feedsToUse: config
nugetConfigPath: stuff
externalFeedCredentials: 'stuff'
- stage: deploy_west
dependsOn: build_test
jobs:
- job: deploy_to_west
pool: default
steps:
- script: echo Deploying West!
- stage: prod_verify
dependsOn:
- deploy_east_with_deployment
- deploy_west
jobs:
- job: verify
pool: default
steps:
- script: echo Verifying deploys!