Skip to content

Commit 3b89652

Browse files
gavinbarronCopilot
andauthored
Use a Windows pool for the 1ES SDL stage in docker-image-refresh (#3669)
The 1ES Official template injects an SDL source-analysis stage that must run on a Windows pool; the template-level pool was Linux, causing 'Please specify a windows pool for SDLSources stage'. Set template-level pool to the Windows pool (1es-windows-ps-compute-m) and keep the Linux pool override on the container build job, mirroring sdk-release.yml. Copilot-Session: d3f8fec7-b00b-46be-ba39-7e1f3e7f7188 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1bd0320 commit 3b89652

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.azure-pipelines/docker-image-refresh.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
name: $(Date:yyyyMMdd)$(Rev:.r)_docker-image-refresh
1616

1717
parameters:
18+
- name: WindowsPool
19+
type: string
20+
default: 1es-windows-ps-compute-m
1821
- name: LinuxPool
1922
type: string
2023
default: Azure-Pipelines-1ESPT-ExDShared
@@ -47,10 +50,10 @@ resources:
4750
extends:
4851
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
4952
parameters:
50-
pool:
51-
name: ${{ parameters.LinuxPool }}
52-
image: ubuntu-latest
53-
os: linux
53+
# The 1ES template injects an SDL/compliance stage that MUST run on a Windows pool, so the
54+
# template-level pool is Windows. The actual container build overrides to a Linux pool at the
55+
# job level below. (Same pattern as sdk-release.yml.)
56+
pool: ${{ parameters.WindowsPool }}
5457
settings:
5558
networkIsolationPolicy: Permissive
5659
customBuildTags:

0 commit comments

Comments
 (0)