Skip to content

Commit c9185c6

Browse files
docs(site): fix pool default and add missing pipeline filter fields in front-matter reference (#644)
- Correct the pool example: replace stale 'AZS-1ES-L-MMS-ubuntu-22.04' string default with accurate vmImage: ubuntu-22.04 (Microsoft-hosted) form, and add commented alternatives for self-hosted string, self-hosted object, and 1ES. - Add branch, build-reason, and expression to the pipeline.filters example; all three are present in PipelineFilters struct (types.rs) and the repo docs but were absent from the site page, while the 'Expression Escape Hatch' and 'Filter Validation' prose sections already referenced them. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6d87434 commit c9185c6

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

site/src/content/docs/reference/front-matter.mdx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ engine: copilot # Engine identifier. Defaults to copilot. Currently only 'copilo
1818
# model: claude-opus-4.7
1919
# timeout-minutes: 30
2020
workspace: repo # Optional: "root", "repo" (alias: "self"), or a checked-out repository alias. If not specified, defaults to "root" when no additional repositories are listed in `repos:`, and to "repo" when one or more additional repos are checked out. See "Workspace Defaults" below.
21-
pool: AZS-1ES-L-MMS-ubuntu-22.04 # Agent pool name (string format). Defaults to AZS-1ES-L-MMS-ubuntu-22.04.
22-
# pool: # Alternative object format (required for 1ES if specifying os)
21+
pool: # Microsoft-hosted agent (default for standalone target)
22+
vmImage: ubuntu-22.04 # defaults to ubuntu-22.04 when pool is omitted entirely
23+
# pool: MySelfHostedPool # String form -- legacy shorthand for a self-hosted pool name
24+
# pool: # Self-hosted pool object form
25+
# name: MySelfHostedPool
26+
# pool: # 1ES pool object form (set os: when needed)
2327
# name: AZS-1ES-L-MMS-ubuntu-22.04
2428
# os: linux # Operating system: "linux" or "windows". Defaults to "linux".
2529
repos: # compact repository declarations (replaces repositories: + checkout:)
@@ -84,10 +88,15 @@ on: # trigger configuration (unified under on: key)
8488
- main
8589
- release/*
8690
filters: # optional runtime filters (compiled to gate step)
87-
source-pipeline: "Build*"
91+
source-pipeline: "Build*" # glob match on upstream pipeline name (Build.TriggeredBy.DefinitionName)
92+
branch: "refs/heads/main" # glob match on triggering branch (Build.SourceBranch)
8893
time-window:
8994
start: "09:00"
9095
end: "17:00"
96+
build-reason:
97+
include: [IndividualCI] # only run when triggered by a commit push (not a schedule)
98+
exclude: [Schedule]
99+
expression: "eq(variables['Custom.Flag'], 'true')" # raw ADO condition escape hatch
91100
pr: # PR trigger
92101
branches:
93102
include: [main]

0 commit comments

Comments
 (0)