Skip to content

Commit 4e6eb4b

Browse files
Merge pull request #488 from NHSDigital/APM-5855-agent-pool-configurable
APM-5855 make agent pool configurable for testing
2 parents d622489 + 2d7f5a8 commit 4e6eb4b

File tree

6 files changed

+16
-3
lines changed

6 files changed

+16
-3
lines changed

azure/common/apigee-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ parameters:
3030
- name: python_version
3131
type: string
3232
default: "3.8"
33+
- name: agent_pool
34+
type: string
35+
default: "AWS-ECS"
3336

3437
jobs:
3538
- job: build
3639
displayName: Build & Test
3740
timeoutInMinutes: 30
3841
pool:
39-
name: 'AWS-ECS'
42+
name: ${{ parameters.agent_pool }}
4043
workspace:
4144
clean: all
4245
variables:

azure/common/apigee-deployment.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ parameters:
151151
- name: python_version
152152
type: string
153153
default: "3.8"
154+
- name: agent_pool
155+
type: string
156+
default: "AWS-ECS"
154157

155158

156159
extends:

azure/common/deploy-stage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ parameters:
7272
- jinja_templates
7373
- name: python_version
7474
type: string
75+
- name: agent_pool
76+
type: string
7577

7678
stages:
7779
- stage: ${{ parameters.stage_name }}
@@ -80,7 +82,7 @@ stages:
8082
- deployment: deploy
8183
environment: ${{ parameters.environment }}
8284
pool:
83-
name: 'AWS-ECS'
85+
name: ${{ parameters.agent_pool }}
8486
workspace:
8587
clean: all
8688
strategy:

azure/common/deploy-stages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ parameters:
1616
type: boolean
1717
- name: python_version
1818
type: string
19-
19+
- name: agent_pool
20+
type: string
2021

2122

2223
stages:

azure/common/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ parameters:
5757
type: string
5858
- name: python_version
5959
type: string
60+
- name: agent_pool
61+
type: string
6062

6163
stages:
6264
- ${{ if eq(parameters.environment, 'manual-approval') }}:

azure/common/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ parameters:
6262
default: false
6363
- name: python_version
6464
type: string
65+
- name: agent_pool
66+
type: string
6567

6668
stages:
6769
- ${{ if eq(parameters.environment, 'manual-approval') }}:

0 commit comments

Comments
 (0)