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

Migrate ADO Release to 1ES ADO Pipeline #1461

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
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
36 changes: 34 additions & 2 deletions eng/pipelines/VS-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: $(Date:yyyMMdd).$(Rev:r)

variables:
- group: TSDTUSR
- name: TeamName
value: MDDDebugger

resources:
repositories:
Expand All @@ -21,7 +23,7 @@ extends:
name: VSEngSS-MicroBuild2022-1ES
os: windows
stages:
- stage: stage
- stage: BuildVSReleasePackage
displayName: VS_Release
jobs:
- job: Phase_1
Expand All @@ -38,4 +40,34 @@ extends:
enabled: true
steps:
- template: /eng/pipelines/templates/VS-release.template.yml@self

- stage: VS_Insertion
dependsOn: [BuildVSReleasePackage]
jobs:
- job:
displayName: Insert package into VS
templateContext:
inputs:
- input: pipelineArtifact
artifactName: PackageVersion
targetPath: $(Build.ArtifactStagingDirectory)\PackageVersion
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)
...
4 changes: 3 additions & 1 deletion eng/pipelines/VSCode-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: $(Date:yyyMMdd).$(Rev:r)

variables:
- group: TSDTUSR
- name: TeamName
value: MDDDebugger

resources:
repositories:
Expand Down
31 changes: 13 additions & 18 deletions eng/pipelines/steps/CopyAndPublishSymbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,22 @@ steps:
TargetFolder: '$(Build.ArtifactStagingDirectory)/symbols'
CleanTargetFolder: true

- task: PowerShell@2
displayName: 'Set Variables for PublishSymbols'

- task: ms-vseng.MicroBuildShipTasks.0ffdda1d-8c7b-40da-b8b1-061660eaeea3.MicroBuildArchiveSymbols@5
displayName: 'Archive MIEngine_MDD on Symweb'
inputs:
targetType: 'inline'
script: |
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.AccountName]microsoft"
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.PAT;issecret=true;]${env:ARTIFACTSERVICES_SYMBOL_PAT}"
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.UseAAD]false"
env:
ARTIFACTSERVICES_SYMBOL_PAT: $(all-org-SymbolsReadWrite)

- template: ../tasks/PublishSymbols.yml
parameters:
IndexSources: false
SymbolsFolder: '$(Build.ArtifactStagingDirectory)/symbols'
SearchPattern: '**\*.pdb'
SymbolServerType: TeamServices

SymbolsFeatureName: MIEngine
SymbolsProject: VS
SymbolsAgentPath: '$(Build.ArtifactStagingDirectory)\Symbols\'
ExcludeAgentFolders: '$(Build.ArtifactStagingDirectory)\Symbols\bin\Debug;$(Build.ArtifactStagingDirectory)\Symbols\bin\Lab.Debug'
${{ if parameters.OneESPT }}:
ExpirationInDays: 3650 # Expire in 10 years for release builds
${{ else }}:
ExpirationInDays: 1 # Expire in 1 day if used for testing

- template: ../tasks/1ES/PublishPipelineArtifact.yml
parameters:
displayName: 'Publish Symbols'
displayName: 'Publish Symbols Artifact'
targetPath: '$(Build.ArtifactStagingDirectory)/symbols'
artifactName: 'Symbols'
OneESPT: ${{ parameters.OneESPT }}
Expand Down