You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add variable-groups field to README table and site front-matter reference (#1434)
Add the variable-groups: front-matter field (introduced in #1426) to the
human-facing docs:
- README.md front matter fields table: new row after repos:
- site/src/content/docs/reference/front-matter.mdx:
- Overview YAML block: add variable-groups: commented entry after repos:
- New ## Variable Groups section (authorization, names-only, target support)
Verified: cd site && npm run build:astro — 38 pages, all internal links valid.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,6 +259,7 @@ the service connections. Approve the permissions and the pipeline is ready.
259
259
| `pool` | string or object | `vmImage: ubuntu-22.04` (standalone) / `AZS-1ES-L-MMS-ubuntu-22.04` (1ES) | Agent pool |
260
260
| `workspace` | `root` \| `repo` \| `self` \| *alias* | auto | Working directory mode. `self` is an alias for `repo`; any checked-out repo alias is also accepted. |
| `variable-groups` | list | — | ADO Library variable group names to import (emits `variables: - group: <name>` in the lock). Not supported on `target: job` or `target: stage`. |
Group names that contain ADO expressions (`${{`, `$(`, `$[`), pipeline
507
+
commands (`##vso[`, `##[`), the compiler's own template marker (`{{`), or
508
+
control characters are rejected at compile time. Leading or trailing whitespace
509
+
is also rejected — the name must match the ADO group display name exactly.
510
+
511
+
Duplicate entries are rejected. Variable group names are case-insensitive in
512
+
ADO, so `Shared Secrets` and `shared secrets` are treated as the same group;
513
+
remove the redundant entry.
514
+
515
+
### Target support
516
+
517
+
`variable-groups:`is only valid for pipeline-level targets — `standalone`
518
+
(default) and `1es`. Using it on `target: job` or `target: stage` is a
519
+
compile-time error: ADO job and stage templates cannot declare pipeline-level
520
+
`variables:`(the parent pipeline that includes the template owns them). Import
521
+
the group in that parent pipeline instead.
522
+
446
523
## Custom Steps Injection
447
524
448
525
The `steps`, `post-steps`, `setup`, and `teardown` fields let you inject custom ADO pipeline steps at specific points in the compiled workflow's execution flow.
0 commit comments