summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-03-27 12:42:24 -0700
committerGitHub <noreply@github.com>2023-03-27 12:42:24 -0700
commitff3f06a8c4d898c39ed0805aa3545e979342b7af (patch)
tree4d30285d9efc08c401553c5f72457d9d40805028
parent6e6b6f1a55acfb7f1af21a42418a935d94194d18 (diff)
downloadansible-ff3f06a8c4d898c39ed0805aa3545e979342b7af.tar.gz
[stable-2.13] Use variable instead of container resource in AZP (#80299) (#80317)
(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 13c12d91e7..1fecd64921 100644
--- a/.azure-pipelines/azure-pipelines.yml
+++ b/.azure-pipelines/azure-pipelines.yml
@@ -30,11 +30,8 @@ variables:
value: .azure-pipelines/commands/entry-point.sh
- name: fetchDepth
value: 500
-
-resources:
- containers:
- - container: default
- image: quay.io/ansible/azure-pipelines-test-container:3.0.0
+ - name: defaultContainer
+ value: quay.io/ansible/azure-pipelines-test-container:3.0.0
pool: Standard
diff --git a/.azure-pipelines/templates/coverage.yml b/.azure-pipelines/templates/coverage.yml
index 469ed5e65d..b518df280c 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 d6a4d5a8b0..3df72632a8 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(replace(job.test, '/', '_'), '.', '_'), '-', '_'), '@', '_') }}
displayName: ${{ job.name }}
- container: default
+ container: $[ variables.defaultContainer ]
workspace:
clean: all
steps: