-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate ADO Release to 1ES ADO Pipeline
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
1 parent
b8bfa53
commit b654fd0
Showing
1 changed file
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
... |