Skip to content

Commit

Permalink
Auto releasing a build needs peer approval (microsoft#161981)
Browse files Browse the repository at this point in the history
* make sure VSCODE_RELEASE has peer approval

* boom
  • Loading branch information
joaomoreno authored Sep 27, 2022
1 parent 43894c6 commit 70a7ce4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build/azure-pipelines/product-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,28 @@ stages:
steps:
- template: product-publish.yml

- ${{ if and(parameters.VSCODE_RELEASE, eq(parameters.VSCODE_DISTRO_REF, ' ')) }}:
- stage: ApproveRelease
dependsOn: [] # run in parallel to compile stage
pool: vscode-1es-linux
jobs:
- deployment: ApproveRelease
displayName: "Approve Release"
environment: "vscode"
variables:
skipComponentGovernanceDetection: true
strategy:
runOnce:
deploy:
steps:
- checkout: none

- ${{ if or(and(parameters.VSCODE_RELEASE, eq(parameters.VSCODE_DISTRO_REF, ' ')), and(in(parameters.VSCODE_QUALITY, 'insider', 'exploration'), eq(variables['VSCODE_SCHEDULEDBUILD'], true))) }}:
- stage: Release
dependsOn:
- Publish
- ${{ if and(parameters.VSCODE_RELEASE, eq(parameters.VSCODE_DISTRO_REF, ' ')) }}:
- ApproveRelease
pool: vscode-1es-linux
jobs:
- job: ReleaseBuild
Expand Down

0 comments on commit 70a7ce4

Please sign in to comment.