Skip to content

Commit

Permalink
Update pipeline (#3952)
Browse files Browse the repository at this point in the history
* fix validation and pipeline, commented out vsce for testing

* fix indentation for job

* uncomment vsce
  • Loading branch information
gcampbell-msft authored Aug 1, 2024
1 parent dc84258 commit ca04165
Showing 1 changed file with 34 additions and 18 deletions.
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

0 comments on commit ca04165

Please sign in to comment.