Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pipeline #3952

Merged
merged 3 commits into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 34 additions & 18 deletions jobs/release/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,41 @@ extends:
name: VSEngSS-MicroBuild2022-1ES

stages:
- stage: release
- stage: Validate
jobs:
- job: release
- job: UpdateBuildNumber
displayName: Update Build Number
steps:
- download: BuildReleasePipeline
artifact: vsix
- powershell: |
$newVersion = Get-Content -Path $(Pipeline.Workspace)\BuildReleasePipeline\vsix\version.txt
Write-Host "New version is: $newVersion"

$str = Get-Date -Format "yyMMdd-HHmm"
Write-Host "##vso[build.updatebuildnumber]$newVersion - $str"
ignoreLASTEXITCODE: true
displayName: "Set the release name"
- job: WaitForValidation
displayName: Wait for vscode-cmake-tools validation
dependsOn: UpdateBuildNumber
pool: server
steps:
- task: ManualValidation@0
displayName: "Manual Validation"
inputs:
notifyUsers: cmaketools@microsoft.com
instructions: |
Download and test the vsix with the matching version number from the latest release build: https://devdiv.visualstudio.com/DevDiv/_build?definitionId=20419

The version should match the name of this release.

- stage: Release
dependsOn: Validate
condition: succeeded('Validate')
jobs:
- job: ReleaseCMakeTools
displayName: Release vscode-cmake-tools Tools
templateContext:
type: releaseJob
isProduction: true
Expand All @@ -36,22 +68,6 @@ extends:
targetPath: $(Build.StagingDirectory)\vsix

steps:
- powershell: |
$newVersion = Get-Content -Path $(Build.StagingDirectory)\vsix\version.txt
Write-Host "New version is: $newVersion"

$str = Get-Date -Format "yyMMdd-HHmm"
Write-Host "##vso[build.updatebuildnumber]$newVersion - $str"
ignoreLASTEXITCODE: true
displayName: 'Set the release name'
- task: ManualValidation@0
displayName: 'Manual Validation'
inputs:
notifyUsers: cmaketools@microsoft.com
instructions: |
Download and test the vsix from the latest release build: https://devdiv.visualstudio.com/DevDiv/_build?definitionId=17431

The version should match the name of this release.
- task: NodeTool@0
displayName: 'Use Node 14.x'
inputs:
Expand Down
Loading