-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[release/v7.7.0-preview.1] Download PMC Packages through TemplateContext
#27332
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
Merged
jshigetomi
merged 1 commit into
PowerShell:release/v7.7.0-preview.1
from
jshigetomi:backport/release/v7.7.0-preview.1/27326-63544d18b
Apr 22, 2026
+71
−52
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,37 +1,56 @@ | ||
| parameters: | ||
| - name: releaseEnvironment | ||
| type: string | ||
| default: Production | ||
| values: | ||
| - Production | ||
| - PPE | ||
| - Test | ||
| - name: approvalServiceEnvironment | ||
| type: string | ||
| default: Production | ||
| values: | ||
| - Production | ||
| - PPE | ||
| - Test | ||
| # OneBranch requires the stage name to be prefixed with the release environment. | ||
| # Official uses 'Prod' for Production; NonProd validators require '<env>' (e.g. 'Test', 'PPE'). | ||
| - name: stagePrefix | ||
| type: string | ||
| default: Prod | ||
| # When true, the Ev2 push step is skipped. Useful for NonOfficial dry-runs that | ||
| # only want to validate artifact download via templateContext.inputs. | ||
| - name: skipEv2Push | ||
| type: boolean | ||
| default: false | ||
|
|
||
| stages: | ||
| - stage: 'Prod_Release' | ||
| - stage: ${{ parameters.stagePrefix }}_Release | ||
| displayName: 'Deploy packages to PMC with EV2' | ||
| dependsOn: | ||
| - PrepForEV2 | ||
| variables: | ||
| - name: ob_release_environment | ||
| value: "Production" | ||
| value: ${{ parameters.releaseEnvironment }} | ||
| - name: repoRoot | ||
| value: $(Build.SourcesDirectory) | ||
| jobs: | ||
| - job: Prod_ReleaseJob | ||
| - job: ${{ parameters.stagePrefix }}_ReleaseJob | ||
| displayName: Publish to PMC | ||
| pool: | ||
| type: release | ||
|
|
||
| steps: | ||
| - task: DownloadPipelineArtifact@2 | ||
| templateContext: | ||
| inputs: | ||
| targetPath: '$(Pipeline.Workspace)' | ||
| artifact: drop_PrepForEV2_CopyEv2FilesToArtifact | ||
| displayName: 'Download drop_PrepForEV2_CopyEv2FilesToArtifact artifact that has all files needed' | ||
| - input: pipelineArtifact | ||
| artifactName: drop_PrepForEV2_CopyEv2FilesToArtifact | ||
|
|
||
| - task: DownloadPipelineArtifact@2 | ||
| inputs: | ||
| buildType: 'current' | ||
| targetPath: '$(Pipeline.Workspace)' | ||
| displayName: 'Download to get EV2 Files' | ||
|
|
||
| - task: vsrm-ev2.vss-services-ev2.adm-release-task.ExpressV2Internal@1 | ||
| displayName: 'Ev2: Push to PMC' | ||
| inputs: | ||
| UseServerMonitorTask: true | ||
| EndpointProviderType: ApprovalService | ||
| ApprovalServiceEnvironment: Production | ||
| ServiceRootPath: '$(Pipeline.Workspace)/drop_PrepForEV2_CopyEV2FilesToArtifact/EV2Specs/ServiceGroupRoot' | ||
| RolloutSpecPath: '$(Pipeline.Workspace)/drop_PrepForEV2_CopyEV2FilesToArtifact/EV2Specs/ServiceGroupRoot/RolloutSpec.json' | ||
| steps: | ||
| - ${{ if not(parameters.skipEv2Push) }}: | ||
| - task: vsrm-ev2.vss-services-ev2.adm-release-task.ExpressV2Internal@1 | ||
| displayName: 'Ev2: Push to PMC' | ||
| inputs: | ||
| UseServerMonitorTask: true | ||
| EndpointProviderType: ApprovalService | ||
| ApprovalServiceEnvironment: ${{ parameters.approvalServiceEnvironment }} | ||
| ServiceRootPath: '$(Pipeline.Workspace)/EV2Specs/ServiceGroupRoot' | ||
| RolloutSpecPath: '$(Pipeline.Workspace)/EV2Specs/ServiceGroupRoot/RolloutSpec.json' | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
skipEv2Pushis true, this job compiles to having no steps (the only step is conditionally omitted). Azure Pipelines jobs typically require at least one step, and even if it runs, it won’t actually validate thetemplateContext.inputsdownload. Add an always-on step (e.g., list$(Pipeline.Workspace)contents / sanity-check required files) and make only the Ev2 task conditional.