summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-04-21 13:55:05 -0700
committerGitHub <noreply@github.com>2023-04-21 13:55:05 -0700
commit214819df32b0e110485888a181109ae3f6a43fe8 (patch)
treefba50d837d74a0d986314962ea26029dff958fcf
parentd5157445e84d9c3ef53ef1366f6b82eb11d9459d (diff)
downloadansible-214819df32b0e110485888a181109ae3f6a43fe8.tar.gz
[stable-2.9] Use variable instead of container resource in AZP (#80299). (#80602)
(cherry picked from commit 93d0253292dc2e66432d96f047b66200a2d2e35b)
-rw-r--r--.azure-pipelines/azure-pipelines.yml7
-rw-r--r--.azure-pipelines/templates/coverage.yml2
-rw-r--r--.azure-pipelines/templates/test.yml2
3 files changed, 4 insertions, 7 deletions
diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml
index 2a13f69858..ea43e63d3b 100644
--- a/.azure-pipelines/azure-pipelines.yml
+++ b/.azure-pipelines/azure-pipelines.yml
@@ -32,11 +32,8 @@ variables:
value: test/utils/shippable/shippable.sh
- name: fetchDepth
value: 500
-
-resources:
- containers:
- - container: default
- image: quay.io/ansible/azure-pipelines-test-container:1.9.0
+ - name: defaultContainer
+ value: quay.io/ansible/azure-pipelines-test-container:1.9.0
pool: Legacy
diff --git a/.azure-pipelines/templates/coverage.yml b/.azure-pipelines/templates/coverage.yml
index 1b36ea45a4..79d5232117 100644
--- a/.azure-pipelines/templates/coverage.yml
+++ b/.azure-pipelines/templates/coverage.yml
@@ -6,7 +6,7 @@
jobs:
- job: Coverage
displayName: Code Coverage
- container: default
+ container: $[ variables.defaultContainer ]
workspace:
clean: all
steps:
diff --git a/.azure-pipelines/templates/test.yml b/.azure-pipelines/templates/test.yml
index 5250ed8023..708251f11e 100644
--- a/.azure-pipelines/templates/test.yml
+++ b/.azure-pipelines/templates/test.yml
@@ -11,7 +11,7 @@ jobs:
- ${{ each job in parameters.jobs }}:
- job: test_${{ replace(replace(replace(job.test, '/', '_'), '.', '_'), '-', '_') }}
displayName: ${{ job.name }}
- container: default
+ container: $[ variables.defaultContainer ]
workspace:
clean: all
steps: