Skip to content

Restructure CI/CD: skip Official builds on push, add weekly schedule, publish assets - #54518

Merged
MichaelSimons merged 6 commits into
mainfrom
marcpopMSFT-simplifybuilds
Jun 10, 2026
Merged

MichaelSimons merged 6 commits into
mainfrom
marcpopMSFT-simplifybuilds

Conversation

@marcpopMSFT

Copy link
Copy Markdown
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>
Copilot AI review requested due to automatic review settings May 29, 2026 23:19
@marcpopMSFT
marcpopMSFT requested a review from MiYanni as a code owner May 29, 2026 23:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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 publishBuiltAssets parameter 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.

Comment thread eng/pipelines/templates/jobs/sdk-build.yml Outdated
Comment thread eng/pipelines/templates/jobs/sdk-build.yml Outdated
…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>
@marcpopMSFT
marcpopMSFT requested a review from MichaelSimons June 4, 2026 21:32
Comment thread eng/pipelines/templates/jobs/sdk-build.yml Outdated
Comment thread eng/pipelines/templates/jobs/sdk-build.yml Outdated
- 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>
@marcpopMSFT
marcpopMSFT requested a review from MichaelSimons June 8, 2026 20:45
@marcpopMSFT

Copy link
Copy Markdown
Member Author

There are some macos failures but they don't look related. I'm clear to merge if I get signoff.

Comment thread .vsts-pr.yml
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>
@marcpopMSFT

Copy link
Copy Markdown
Member Author

@MichaelSimons Good catch on the .vsts-pr.yml — removed the publishBuiltAssets: true lines since the parameter was removed from the template. Resolved the thread.

@MichaelSimons
MichaelSimons merged commit 644aed8 into main Jun 10, 2026
25 checks passed
@MichaelSimons
MichaelSimons deleted the marcpopMSFT-simplifybuilds branch June 10, 2026 13:16
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants