Skip to content

Stop running build jobs on official check-in CI runs - #55547

Merged
MichaelSimons merged 1 commit into
dotnet:mainfrom
MichaelSimons:michaelsimons-fix-vsts-build-stage-trigger
Jul 31, 2026
Merged

Stop running build jobs on official check-in CI runs#55547
MichaelSimons merged 1 commit into
dotnet:mainfrom
MichaelSimons:michaelsimons-fix-vsts-build-stage-trigger

Conversation

@MichaelSimons

Copy link
Copy Markdown
Member

Summary

Stops running build jobs on official check-in CI runs, while preserving publish behavior needed for source-flow.

This updates .vsts-ci.yml so that:

  • Build stage runs only for non-check-in reasons (not IndividualCI / BatchedCI)
  • Publish stage runs for:
    • IndividualCI
    • BatchedCI
    • manual runs with forcePublish: true

Also adds a new pipeline parameter:

  • forcePublish (default false) to allow testing publish logic without editing pipeline conditions.

Why

Official check-in runs primarily need to publish assets for flow, and running full build legs there is unnecessary compute.
This change reduces redundant build execution while still allowing explicit publish validation paths.

Issue

Fixes #55544

Update .vsts-ci.yml to skip the build stage for check-in CI reasons (IndividualCI/BatchedCI), keep publish for check-in runs, and add a forcePublish parameter so manual validation can run publish without changing YAML conditions.

Fixes dotnet#55544

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c0e416e1-d99b-4093-9ca5-b177f8fba369
Copilot AI review requested due to automatic review settings July 30, 2026 22:40
@MichaelSimons
MichaelSimons requested a review from MiYanni as a code owner July 30, 2026 22:40
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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

Updates the Azure Pipelines definition to reduce compute on official check-in CI by skipping the full build job matrix while still running the publish stage needed for source-flow.

Changes:

  • Added a new forcePublish boolean parameter to allow publish-stage routing to be exercised on non-check-in runs.
  • Gated the build stage to run only when Build.Reason is not IndividualCI or BatchedCI.
  • Updated the publish stage gating to run only for IndividualCI, BatchedCI, or when forcePublish: true is set.

Comment thread .vsts-ci.yml
Comment thread .vsts-ci.yml
@MichaelSimons
MichaelSimons merged commit beccf68 into dotnet:main Jul 31, 2026
34 checks passed
@MichaelSimons
MichaelSimons deleted the michaelsimons-fix-vsts-build-stage-trigger branch July 31, 2026 13:49
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Aug 3, 2026
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.

Stop running build jobs on official builds

3 participants