Commit 8df9682
feat(compile): add target: job and target: stage for ADO template output (#519)
* feat(compile): add target: job and target: stage for ADO template output
Add two new compile targets that produce reusable ADO YAML templates
for embedding agentic stages into existing pipelines:
- target: job — generates a job-level template (jobs: at root) that can
be included in a flat pipeline or inside a user-defined stage
- target: stage — generates a stage-level template (stages: wrapping
jobs) for direct inclusion in multi-stage pipelines
Key design decisions:
- Pool is baked in from front matter (not a template parameter)
- dependsOn and condition are set natively at the ADO call site
- Job names are prefixed with PascalCase agent name for uniqueness
(e.g., DailyReview_Agent, DailyReview_Detection, DailyReview_Execution)
- Triggers (on:) are ignored with a warning in template targets
- Template parameters only include clearMemory and user-defined params
New files:
- src/compile/job.rs — JobCompiler implementing the Compiler trait
- src/compile/stage.rs — StageCompiler implementing the Compiler trait
- src/data/job-base.yml — job-level template derived from base.yml
- src/data/stage-base.yml — stage-level template wrapping jobs in stage
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix(compile): implement review suggestions for job/stage template targets
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/fa2ca612-1703-4107-87c3-2b2ec35429b8
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
* fix(compile): use 'template' label for job/stage targets and fix header paths
- CLI now prints 'Generated job template:' and 'Generated stage template:'
instead of 'Generated job pipeline:' / 'Generated stage pipeline:' since
these targets produce reusable ADO templates, not standalone pipelines.
- Header comments in generated job/stage templates now reference the actual
output path instead of deriving a path from the input file, fixing
incorrect inclusion examples (e.g. showing ./agents/x.lock.yml when the
output was at ./x.lock.yml).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent 9d8f445 commit 8df9682
3 files changed
Lines changed: 19 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2861 | 2861 | | |
2862 | 2862 | | |
2863 | 2863 | | |
2864 | | - | |
| 2864 | + | |
2865 | 2865 | | |
2866 | 2866 | | |
2867 | 2867 | | |
2868 | | - | |
| 2868 | + | |
2869 | 2869 | | |
2870 | 2870 | | |
2871 | 2871 | | |
| |||
2927 | 2927 | | |
2928 | 2928 | | |
2929 | 2929 | | |
2930 | | - | |
2931 | | - | |
2932 | | - | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
2933 | 2939 | | |
2934 | 2940 | | |
2935 | 2941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
105 | | - | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
0 commit comments