Skip to content

Commit

Permalink
Migrate ADO Release to 1ES ADO Pipeline
Browse files Browse the repository at this point in the history
This PR address the issue that ADO Release is not using a goverened
template. This PR migrates the release to be an 1ES Pipeline Template
  • Loading branch information
WardenGnaw committed Aug 28, 2024
1 parent b8bfa53 commit b654fd0
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions eng/pipelines/VS-Insertion-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Inserts the binaries generated by VS-release.yml into VS repo
---
name: $(Date:yyyMMdd).$(Rev:r)

resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
pipelines:
- pipeline: MIEngine_MDD
source: 'MIEngine_VS_Release'

extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: VSEngSS-MicroBuild2022-1ES
os: windows
sdl:
sourceAnalysisPool:
name: VSEngSS-MicroBuild2022-1ES
os: windows
stages:
- stage: VS_Insertion
displayName: VS Insertion
jobs:
- job:
templateContext:
inputs:
- input: pipelineArtifact
artifactName: PackageVersion
targetPath: $(Build.ArtifactStagingDirectory)\PackageVersion
pipeline: MIEngine_MDD
steps:
- checkout: none

- powershell: |
$version= [IO.File]::ReadAllText("$(Build.ArtifactStagingDirectory)\PackageVersion\NugetPackageVersion.txt")
Write-Host "##vso[task.setvariable variable=MDDPackageVersion;]$version"
displayName: 'Set MDDPackage Version'
- task: ms-vseng.MicroBuildShipTasks.55100717-a81d-45ea-a363-b8fe3ec375ad.MicroBuildInsertVsPayload@4
displayName: 'Insert VS Payload'
inputs:
TargetBranch: $(TargetBranch)
TeamName: 'VS Debugger Platform'
TeamEmail: $(TEAMEMAIL)
DefaultConfigValues: 'VS.Redist.Debugger.MDD.MIEngine=$(MDDPackageVersion)'
RevisionTextFiles: 'src/SetupPackages/VC/IDE/MDD/core/revision.txt,src/SetupPackages/VC/IDE/MDD/res/revision.txt'
InsertionPayloadName: 'MIEngine $(MDDPackageVersion)'
InsertionDescription: 'Updating MIEngine to $(MDDPackageVersion). See $(Release.Artifacts.MIEngine_MDD.BuildURI)'
InsertionReviewers: $(InsertionReviewers)

- stage: Symbol
dependsOn: []
displayName: Symbol Archive
jobs:
- job:
templateContext:
inputs:
- input: pipelineArtifact
artifactName: Symbols
targetPath: $(Build.ArtifactStagingDirectory)\Symbols
pipeline: MIEngine_MDD
steps:
- checkout: none

- task: ms-vseng.MicroBuildShipTasks.0ffdda1d-8c7b-40da-b8b1-061660eaeea3.MicroBuildArchiveSymbols@5
displayName: 'Archive MIEngine_MDD on Symweb'
inputs:
SymbolsFeatureName: MIEngine
SymbolsProject: VS
SymbolsAgentPath: '$(Build.ArtifactStagingDirectory)\Symbols\'
ExcludeAgentFolders: '$(Build.ArtifactStagingDirectory)\Symbols\bin\Debug;$(Build.ArtifactStagingDirectory)\Symbols\bin\Lab.Debug'

- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: Cleanup
condition: always()
...

0 comments on commit b654fd0

Please sign in to comment.