[ci] Only run dnceng-public pipeline for fork PRs#11153
Merged
jonathanpeppers merged 1 commit intomainfrom Apr 17, 2026
Merged
Conversation
Remove CI triggers (pushes to main/release/feature) from the public pipeline since those are already handled by the internal DevDiv pipeline. Add fork-only condition to all stages so non-fork PRs skip immediately, freeing up dnceng-public pool usage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the public Azure DevOps pipeline configuration to avoid duplicating CI work already covered by the internal DevDiv pipeline, conserving public build pool capacity by ensuring the public pipeline only executes for fork-based PRs.
Changes:
- Disabled branch CI triggers in the public pipeline via
trigger: none. - Added fork-only stage conditions using
System.PullRequest.IsForkso stages skip for non-fork PR validations.
Member
Author
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.

Description
The dnceng-public pipeline (
azure-pipelines-public.yaml) currently runs CIbuilds on pushes to
main,release/*, andfeature/*, and also triggers forall PRs (not just forks). This duplicates work already handled by the internal
DevDiv pipeline, wasting public pool resources.
This PR restricts the dnceng-public pipeline to only run for fork PRs:
trigger: noneso pushes to main/release/featureno longer trigger builds on dnceng-public.
eq(variables['System.PullRequest.IsFork'], 'True')so non-fork PRs thatstill trigger the pipeline will skip all stages immediately.
The
pr:trigger cannot filter by fork status in YAML, so non-fork PRs willstill trigger the pipeline, but no stages will execute.