Commit 2ab85b7
authored
FIX: Use imageOverride demand instead of vmImage for 1ES Windows pool selection (#429)
### Work Item / Issue Reference
[AB#42368](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/42368)
> N/A
-------------------------------------------------------------------
### Summary
Fix 1ES Pipeline Templates validation failure (`1ES PT Error: Using an
image without 1es-pt-prerequisites artifact is not allowed`) on Windows
build stages.
The `Django-1ES-pool` custom 1ES Hosted Pool was falling back to its
default `MMS2016` (Windows Server 2019) image because `vmImage` doesn't
properly select images from custom pools. Changed all three Windows pool
configurations to use `demands` with `imageOverride` (matching the
pattern already used by the Linux stage template) to correctly select
the `WIN22-SQL22` image.
**Files changed:**
- `OneBranchPipelines/stages/build-windows-single-stage.yml`
- `OneBranchPipelines/official-release-pipeline.yml`
- `OneBranchPipelines/dummy-release-pipeline.yml`1 parent d424c6f commit 2ab85b7
3 files changed
Lines changed: 6 additions & 3 deletions
File tree
- OneBranchPipelines
- stages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments