diff --git a/eng/pipelines/VS-Insertion-release.yml b/eng/pipelines/VS-Insertion-release.yml new file mode 100644 index 000000000..c20251930 --- /dev/null +++ b/eng/pipelines/VS-Insertion-release.yml @@ -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() +... \ No newline at end of file