Skip to content

Separate AzDO and NuGet.org publishing into distinct pipeline stages#802

Open
Copilot wants to merge 2 commits into
engfrom
copilot/separate-publishing-to-azdo-and-nuget-again
Open

Separate AzDO and NuGet.org publishing into distinct pipeline stages#802
Copilot wants to merge 2 commits into
engfrom
copilot/separate-publishing-to-azdo-and-nuget-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

Publishing to AzDO and NuGet.org happened in a single Publish stage with no opportunity to test from the AzDO feed before exposing packages to customers on NuGet.org.

Changes

  • eng/pipelines/official.yml: Replaced the single Publish stage with two independent stages:
    • PublishAzDO — active when publishToAzDO=true, depends on Build
    • PublishNuGet — active when publishToNuGet=true, depends on PublishAzDO when both flags are set, otherwise depends directly on Build

Each stage has its own DotNet-SDK-Workloads environment approval gate, so the two can be approved independently. When both are enabled, the enforced order is Build → PublishAzDO → PublishNuGet, giving operators a window to validate from the AzDO feed before releasing to NuGet.org.

Copilot AI changed the title [WIP] Separate publishing to azdo and nuget.org Separate AzDO and NuGet.org publishing into distinct pipeline stages May 6, 2026
Copilot AI requested a review from marcpopMSFT May 6, 2026 21:02
@marcpopMSFT
Copy link
Copy Markdown
Member

Change looks right. One drawback is that we're downloading the build artifacts in both but I don't think there's a way to avoid that. This would make it so we had two approvals to do but could publish to azdo ahead of time and test before release day.

@marcpopMSFT marcpopMSFT marked this pull request as ready for review May 7, 2026 17:54
Copilot AI review requested due to automatic review settings May 7, 2026 17:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the official pipeline to split package publishing into two separately-approvable stages so operators can validate packages from the AzDO feed before releasing to NuGet.org.

Changes:

  • Replaced the single Publish stage with PublishAzDO (runs when publishToAzDO=true) and PublishNuGet (runs when publishToNuGet=true).
  • Ensured the publish order is Build → PublishAzDO → PublishNuGet when both publish flags are enabled, while allowing PublishNuGet to depend directly on Build when AzDO publishing is disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 252 to 256
- task: 1ES.DownloadPipelineArtifact@1
displayName: 🟣 Download build artifacts
inputs:
artifactName: Artifacts
targetPath: $(System.DefaultWorkingDirectory)/artifacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Separate publishing to azdo and publishing to nuget.org

3 participants