diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index 66707b3..ec56996 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml @@ -37,26 +37,13 @@ variables: resources: containers: - container: default + image: quay.io/ansible/azure-pipelines-test-container:8.0.0 + - container: legacy image: quay.io/ansible/azure-pipelines-test-container:7.0.0 pool: Standard stages: - - stage: Sanity_devel - displayName: Ansible devel sanity & Units & Lint - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - nameFormat: "{0}" - testFormat: devel/{0} - targets: - - name: Sanity - test: sanity - - name: Units - test: units - - name: Lint - test: lint - stage: Sanity_2_19 displayName: Ansible 2.19 sanity & Units & Lint dependsOn: [] @@ -93,6 +80,7 @@ stages: jobs: - template: templates/matrix.yml parameters: + container: legacy nameFormat: "{0}" testFormat: 2.17/{0} targets: @@ -108,6 +96,7 @@ stages: jobs: - template: templates/matrix.yml parameters: + container: legacy nameFormat: "{0}" testFormat: 2.16/{0} targets: @@ -115,21 +104,10 @@ stages: test: sanity - name: Units test: units + - name: Lint + test: lint + ## Docker - - stage: Docker_devel - displayName: Docker devel - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: devel/linux/{0}/1 - targets: - - name: Fedora 42 - test: fedora42 - - name: Ubuntu 22.04 - test: ubuntu2204 - - name: Ubuntu 24.04 - test: ubuntu2404 - stage: Docker_2_19 displayName: Docker 2.19 dependsOn: [] @@ -164,6 +142,7 @@ stages: jobs: - template: templates/matrix.yml parameters: + container: legacy testFormat: 2.17/linux/{0}/1 targets: - name: Fedora 39 @@ -176,32 +155,15 @@ stages: jobs: - template: templates/matrix.yml parameters: + container: legacy testFormat: 2.16/linux/{0}/1 targets: - - name: CentOS 7 - test: centos7 - name: Fedora 38 test: fedora38 - name: Ubuntu 22.04 test: ubuntu2204 ## Remote - - stage: Remote_devel - displayName: Remote devel - dependsOn: [] - jobs: - - template: templates/matrix.yml - parameters: - testFormat: devel/{0}/1 - targets: - - name: RHEL 10.0 - test: rhel/10.0 - - name: RHEL 9.6 - test: rhel/9.6 - - name: FreeBSD 14.3 - test: freebsd/14.3 - - name: FreeBSD 13.5 - test: freebsd/13.5 - stage: Remote_2_19 displayName: Remote 2.19 dependsOn: [] @@ -210,10 +172,10 @@ stages: parameters: testFormat: 2.19/{0}/1 targets: - - name: RHEL 10.0 - test: rhel/10.0 - - name: RHEL 9.5 - test: rhel/9.5 + - name: RHEL 10.1 + test: rhel/10.1 + - name: RHEL 9.7 + test: rhel/9.7 - name: FreeBSD 14.2 test: freebsd/14.2 - name: FreeBSD 13.5 @@ -226,8 +188,10 @@ stages: parameters: testFormat: 2.18/{0}/1 targets: - - name: RHEL 9.4 - test: rhel/9.4 + - name: RHEL 10.1 + test: rhel/10.1 + - name: RHEL 9.7 + test: rhel/9.7 - name: FreeBSD 13.5 test: freebsd/13.5 - stage: Remote_2_17 @@ -236,10 +200,11 @@ stages: jobs: - template: templates/matrix.yml parameters: + container: legacy testFormat: 2.17/{0}/1 targets: - - name: RHEL 9.3 - test: rhel/9.3 + - name: RHEL 10.0 + test: rhel/10.0 - name: FreeBSD 13.5 test: freebsd/13.5 - stage: Remote_2_16 @@ -248,12 +213,11 @@ stages: jobs: - template: templates/matrix.yml parameters: + container: legacy testFormat: 2.16/{0}/1 targets: - - name: RHEL 8.8 - test: rhel/8.8 - - name: RHEL 9.2 - test: rhel/9.2 + - name: RHEL 10.1 + test: rhel/10.1 ## Finally @@ -272,8 +236,5 @@ stages: - Sanity_2_19 - Remote_2_19 - Docker_2_19 - - Sanity_devel - - Remote_devel - - Docker_devel jobs: - template: templates/coverage.yml diff --git a/.azure-pipelines/templates/matrix.yml b/.azure-pipelines/templates/matrix.yml index 4e9555d..061461f 100644 --- a/.azure-pipelines/templates/matrix.yml +++ b/.azure-pipelines/templates/matrix.yml @@ -14,6 +14,12 @@ parameters: type: object default: [] + # An optional container resource name to use for the test jobs. + # Defaults to "default" if not specified. + - name: container + type: string + default: default + # An optional format string used to generate the job name. # - {0} is the name of an item in the targets list. - name: nameFormat @@ -43,6 +49,7 @@ parameters: jobs: - template: test.yml parameters: + container: ${{ parameters.container }} jobs: - ${{ if eq(length(parameters.groups), 0) }}: - ${{ each target in parameters.targets }}: diff --git a/.azure-pipelines/templates/test.yml b/.azure-pipelines/templates/test.yml index 5250ed8..2c93c14 100644 --- a/.azure-pipelines/templates/test.yml +++ b/.azure-pipelines/templates/test.yml @@ -7,11 +7,17 @@ parameters: - name: jobs type: object + # An optional container resource name to use for the test jobs. + # Defaults to "default" if not specified. + - name: container + type: string + default: default + jobs: - ${{ each job in parameters.jobs }}: - job: test_${{ replace(replace(replace(job.test, '/', '_'), '.', '_'), '-', '_') }} displayName: ${{ job.name }} - container: default + container: ${{ parameters.container }} workspace: clean: all steps: diff --git a/changelogs/fragments/753_ci_test_container_update.yml b/changelogs/fragments/753_ci_test_container_update.yml new file mode 100644 index 0000000..1552723 --- /dev/null +++ b/changelogs/fragments/753_ci_test_container_update.yml @@ -0,0 +1,3 @@ +--- +trivial: + - Update Azure Pipelines test container to 8.0.0 and use legacy container for ansible-core 2.16/2.17.