8000 Block any preview vPack release (#20243) (#20526) · PowerShell/PowerShell@e6ee40c · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit e6ee40c

Browse files
Block any preview vPack release (#20243) (#20526)
1 parent 53a2eda commit e6ee40c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/releaseBuild/azureDevOps/vpackRelease.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ stages:
4545
ReleaseTagVar: $(ReleaseTagVar)
4646
CreateJson: yes
4747
UseJson: no
48+
49+
- powershell: |
50+
if($env:RELEASETAGVAR -match '-') {
51+
throw "Don't release a preview build without coordinating with Windows Engineering Build Tools Team"
52+
}
53+
displayName: Stop any preview release
4854
4955
- powershell: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhss"))"
5056
displayName: Set Build Name for Non-PR

0 commit comments

Comments
 (0)
0