Restructure CI/CD: skip Official builds on push, add weekly schedule, publish assets - #54518
Merged
Merged
Conversation
marcpopMSFT
commented
May 29, 2026
Member
- Skip Official code builds on BatchedCI (push) triggers while preserving the publish stage for codeflow to dotnet/dotnet
- Add weekly scheduled build (Sunday midnight UTC) for CodeQL/SDL results
- Publish built assets (.tar.gz, .zip, .exe, .pkg) as pipeline artifacts in both PR and CI pipelines for testing
… publish assets - Skip Official code builds on BatchedCI (push) triggers while preserving the publish stage for codeflow to dotnet/dotnet - Add weekly scheduled build (Sunday midnight UTC) for CodeQL/SDL results - Publish built assets (.tar.gz, .zip, .exe, .pkg) as pipeline artifacts in both PR and CI pipelines for testing Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the SDK Azure Pipelines definitions to reduce push-triggered Official build workload, add a weekly scheduled run for SDL/CodeQL reporting, and make built outputs easier to consume by publishing them as artifacts.
Changes:
- Add a
publishBuiltAssetsparameter to SDK job templates and enable it in PR/CI pipelines. - Skip the “Official” job matrix on
BatchedCI(push) runs while keeping the publish stage for non-PR runs. - Add a weekly scheduled build on
main(Sunday 00:00 UTC).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| eng/pipelines/templates/jobs/sdk-job-matrix.yml | Adds a new publishBuiltAssets parameter to flow through the job matrix into per-job builds. |
| eng/pipelines/templates/jobs/sdk-build.yml | Adds a conditional step to publish built assets from the Shipping packages directory when enabled. |
| .vsts-pr.yml | Enables publishing built assets for Windows/Linux/macOS (including macOS arm64) PR jobs. |
| .vsts-ci.yml | Adds a weekly schedule, enables publishing built assets, and skips Official job sets on BatchedCI push runs. |
…ve CI publish - Switch from PublishBuildArtifacts to PublishPipelineArtifact for consistency - Change condition to not(canceled()) so assets publish even when tests fail - Remove publishBuiltAssets from .vsts-ci.yml (only needed in PR builds) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Remove publishBuiltAssets conditional so assets are always published - Rename artifacts to $(PhaseName)_Logs and $(PhaseName)_Assets for grouping - Remove unused publishBuiltAssets parameter from both templates Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
Author
|
There are some macos failures but they don't look related. I'm clear to merge if I get signoff. |
The publishBuiltAssets parameter was removed from the sdk-build template, so passing it in .vsts-pr.yml is no longer needed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
Author
|
@MichaelSimons Good catch on the |
MichaelSimons
approved these changes
Jun 10, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.