c713ed7a55
Add a job that tests the build-container-image role as it would be used in a tag-based release pipeline (as opposed to check or gate+promote). Also, correct an issue in the role where we assumed zuul.change existed. Change-Id: If2566764a52726ce45fff9b5e96ce9a42d513d8d
395 lines
13 KiB
YAML
395 lines
13 KiB
YAML
- job:
|
|
name: zuul-jobs-test-ensure-docker
|
|
description: Tests ensure-docker role
|
|
abstract: true
|
|
files:
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- test-requirements.txt
|
|
run: test-playbooks/ensure-docker.yaml
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-docker-centos-7
|
|
description: Tests ensure-docker role on centos-7
|
|
parent: zuul-jobs-test-ensure-docker
|
|
nodeset:
|
|
nodes:
|
|
- name: centos-7
|
|
label: centos-7
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-docker-centos-8
|
|
description: Tests ensure-docker role on centos-8
|
|
parent: zuul-jobs-test-ensure-docker
|
|
nodeset:
|
|
nodes:
|
|
- name: centos-8
|
|
label: centos-8
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-docker-debian-stretch
|
|
description: Tests ensure-docker role on debian-stretch
|
|
parent: zuul-jobs-test-ensure-docker
|
|
nodeset:
|
|
nodes:
|
|
- name: debian-stretch
|
|
label: debian-stretch
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-docker-fedora-31
|
|
description: Tests ensure-docker role on fedora-31
|
|
parent: zuul-jobs-test-ensure-docker
|
|
nodeset:
|
|
nodes:
|
|
- name: fedora-31
|
|
label: fedora-31
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-docker-ubuntu-bionic
|
|
description: Tests ensure-docker role on ubuntu-bionic
|
|
parent: zuul-jobs-test-ensure-docker
|
|
nodeset:
|
|
nodes:
|
|
- name: ubuntu-bionic
|
|
label: ubuntu-bionic
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-docker-ubuntu-xenial
|
|
description: Tests ensure-docker role on ubuntu-xenial
|
|
parent: zuul-jobs-test-ensure-docker
|
|
nodeset:
|
|
nodes:
|
|
- name: ubuntu-xenial
|
|
label: ubuntu-xenial
|
|
|
|
- job:
|
|
name: zuul-jobs-test-build-docker-image-release
|
|
description: |
|
|
Test building a docker image in a release pipeline.
|
|
|
|
This job tests changes to the build-docker-image role,
|
|
simulating its use within a tag-based release pipeline. It is
|
|
not meant to be used directly but rather run on changes to roles
|
|
in the zuul-jobs repo.
|
|
files:
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- roles/build-docker-image/.*
|
|
- test-playbooks/container/.*
|
|
pre-run: test-playbooks/container/test-build-container-image-release-pre.yaml
|
|
run: test-playbooks/container/test-build-container-image-release.yaml
|
|
vars:
|
|
container_command: docker
|
|
multiarch: false
|
|
nodeset:
|
|
nodes:
|
|
- name: builder
|
|
label: ubuntu-bionic
|
|
|
|
- job:
|
|
name: zuul-jobs-test-registry-docker
|
|
description: |
|
|
Test the intermediate registry roles.
|
|
|
|
This job tests changes to the intermediate registry roles. It
|
|
is not meant to be used directly but rather run on changes to
|
|
roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/pull-from-intermediate-registry/.*
|
|
- roles/push-to-intermediate-registry/.*
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- roles/build-docker-image/.*
|
|
- roles/run-buildset-registry/.*
|
|
- roles/use-buildset-registry/.*
|
|
- test-playbooks/registry/.*
|
|
pre-run: test-playbooks/registry/test-registry-pre.yaml
|
|
run: test-playbooks/registry/test-registry.yaml
|
|
post-run: test-playbooks/registry/test-registry-post.yaml
|
|
vars:
|
|
container_command: docker
|
|
multiarch: false
|
|
nodeset:
|
|
nodes:
|
|
- name: intermediate-registry
|
|
label: ubuntu-bionic
|
|
- name: executor
|
|
label: ubuntu-bionic
|
|
- name: builder
|
|
label: ubuntu-bionic
|
|
|
|
- job:
|
|
name: zuul-jobs-test-registry-docker-multiarch
|
|
description: |
|
|
Test the intermediate registry roles with multiarch.
|
|
|
|
This job tests changes to the intermediate registry roles. It
|
|
is not meant to be used directly but rather run on changes to
|
|
roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/pull-from-intermediate-registry/.*
|
|
- roles/push-to-intermediate-registry/.*
|
|
- roles/ensure-docker/.*
|
|
- roles/build-docker-image/.*
|
|
- roles/run-buildset-registry/.*
|
|
- roles/use-buildset-registry/.*
|
|
- test-playbooks/registry/.*
|
|
pre-run: test-playbooks/registry/test-registry-pre.yaml
|
|
run: test-playbooks/registry/test-registry.yaml
|
|
post-run: test-playbooks/registry/test-registry-post.yaml
|
|
vars:
|
|
container_command: docker
|
|
multiarch: true
|
|
nodeset:
|
|
nodes:
|
|
- name: intermediate-registry
|
|
label: ubuntu-bionic
|
|
- name: executor
|
|
label: ubuntu-bionic
|
|
- name: builder
|
|
label: ubuntu-bionic
|
|
|
|
- job:
|
|
name: zuul-jobs-test-registry-podman
|
|
description: |
|
|
Test the intermediate registry roles.
|
|
|
|
This job tests changes to the intermediate registry roles using
|
|
podman rather than docker. It is not meant to be used directly
|
|
but rather run on changes to roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/pull-from-intermediate-registry/.*
|
|
- roles/push-to-intermediate-registry/.*
|
|
- roles/ensure-podman/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- roles/build-container-image/.*
|
|
- roles/run-buildset-registry/.*
|
|
- roles/use-buildset-registry/.*
|
|
- test-playbooks/registry/.*
|
|
pre-run: test-playbooks/registry/test-registry-pre.yaml
|
|
run: test-playbooks/registry/test-registry.yaml
|
|
post-run: test-playbooks/registry/test-registry-post.yaml
|
|
vars:
|
|
container_command: podman
|
|
multiarch: false
|
|
nodeset:
|
|
nodes:
|
|
- name: intermediate-registry
|
|
label: ubuntu-bionic
|
|
- name: executor
|
|
label: ubuntu-bionic
|
|
- name: builder
|
|
label: ubuntu-bionic
|
|
|
|
- job:
|
|
name: zuul-jobs-test-registry-buildset-registry
|
|
parent: opendev-buildset-registry
|
|
description: |
|
|
Run a buildset registry for the test-registry jobs
|
|
|
|
This runs two registries: a real buildset registry so that we
|
|
can receive speculative zuul-registry images, and a fake
|
|
buildset registry (running the speculative or latest
|
|
zuul-registry) that is used to test using the buildset registry
|
|
role.
|
|
|
|
It is not meant to be used directly but rather run on changes
|
|
to roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/pull-from-intermediate-registry/.*
|
|
- roles/push-to-intermediate-registry/.*
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-kubernetes/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- roles/build-docker-image/.*
|
|
- roles/run-buildset-registry/.*
|
|
- roles/use-buildset-registry/.*
|
|
- test-playbooks/registry/.*
|
|
pre-run: test-playbooks/registry/buildset-registry-pre.yaml
|
|
run: test-playbooks/registry/buildset-registry.yaml
|
|
post-run: test-playbooks/registry/test-registry-post.yaml
|
|
vars:
|
|
container_command: docker
|
|
|
|
- job:
|
|
name: zuul-jobs-test-registry-buildset-registry-k8s-docker
|
|
dependencies: zuul-jobs-test-registry-buildset-registry
|
|
description: |
|
|
Test a buildset registry with kubernetes and docker
|
|
|
|
It is not meant to be used directly but rather run on changes
|
|
to roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/pull-from-intermediate-registry/.*
|
|
- roles/push-to-intermediate-registry/.*
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-kubernetes/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- roles/build-docker-image/.*
|
|
- roles/run-buildset-registry/.*
|
|
- roles/use-buildset-registry/.*
|
|
- test-playbooks/registry/.*
|
|
run: test-playbooks/registry/buildset-registry-k8s-docker.yaml
|
|
post-run:
|
|
- test-playbooks/registry/buildset-registry-k8s-docker-post.yaml
|
|
- test-playbooks/registry/test-registry-post.yaml
|
|
vars:
|
|
container_command: docker
|
|
|
|
- job:
|
|
name: zuul-jobs-test-registry-buildset-registry-k8s-crio
|
|
dependencies: zuul-jobs-test-registry-buildset-registry
|
|
description: |
|
|
Test a buildset registry with kubernetes and CRIO
|
|
|
|
It is not meant to be used directly but rather run on changes
|
|
to roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/pull-from-intermediate-registry/.*
|
|
- roles/push-to-intermediate-registry/.*
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-kubernetes/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- roles/build-docker-image/.*
|
|
- roles/run-buildset-registry/.*
|
|
- roles/use-buildset-registry/.*
|
|
- test-playbooks/registry/.*
|
|
run: test-playbooks/registry/buildset-registry-k8s-crio.yaml
|
|
post-run:
|
|
- test-playbooks/registry/buildset-registry-k8s-crio-post.yaml
|
|
- test-playbooks/registry/test-registry-post.yaml
|
|
vars:
|
|
container_command: podman
|
|
|
|
- job:
|
|
name: zuul-jobs-test-registry-buildset-registry-openshift-docker
|
|
dependencies: zuul-jobs-test-registry-buildset-registry
|
|
description: |
|
|
Test a buildset registry with openshift and docker
|
|
|
|
It is not meant to be used directly but rather run on changes
|
|
to roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/pull-from-intermediate-registry/.*
|
|
- roles/push-to-intermediate-registry/.*
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-openshift/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- roles/build-docker-image/.*
|
|
- roles/run-buildset-registry/.*
|
|
- roles/use-buildset-registry/.*
|
|
- test-playbooks/registry/.*
|
|
run: test-playbooks/registry/buildset-registry-openshift-docker.yaml
|
|
post-run:
|
|
- test-playbooks/registry/test-registry-post.yaml
|
|
vars:
|
|
container_command: docker
|
|
nodeset:
|
|
nodes:
|
|
- name: controller
|
|
label: centos-7
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-kubernetes-docker
|
|
description: |
|
|
Test the ensure-kubernetes role with docker
|
|
|
|
This job tests changes to the ensure-kubernetes roles. It
|
|
is not meant to be used directly but rather run on changes to
|
|
roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-kubernetes/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- test-playbooks/ensure-kubernetes/.*
|
|
run: test-playbooks/ensure-kubernetes/docker.yaml
|
|
post-run: test-playbooks/ensure-kubernetes/post.yaml
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-kubernetes-crio
|
|
description: |
|
|
Test the ensure-kubernetes role with crio-o
|
|
|
|
This job tests changes to the ensure-kubernetes roles. It
|
|
is not meant to be used directly but rather run on changes to
|
|
roles in the zuul-jobs repo.
|
|
files:
|
|
- roles/ensure-docker/.*
|
|
- roles/ensure-kubernetes/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- test-playbooks/ensure-kubernetes/.*
|
|
run: test-playbooks/ensure-kubernetes/crio.yaml
|
|
post-run: test-playbooks/ensure-kubernetes/post.yaml
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-podman
|
|
description: |
|
|
Test the ensure-podman role
|
|
|
|
This job tests the ensure-podman role. It is not meant to be
|
|
used directly but rather run on changes to roles in the
|
|
zuul-jobs repo.
|
|
abstract: true
|
|
files:
|
|
- roles/ensure-podman/.*
|
|
- roles/ensure-package-repositories/.*
|
|
- test-playbooks/ensure-podman/.*
|
|
run: test-playbooks/ensure-podman/main.yaml
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-podman-centos-8
|
|
description: Tests ensure-podman role on centos-8
|
|
parent: zuul-jobs-test-ensure-podman
|
|
nodeset:
|
|
nodes:
|
|
- name: centos-8
|
|
label: centos-8
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-podman-fedora-31
|
|
description: Tests ensure-podman role on fedora-31
|
|
parent: zuul-jobs-test-ensure-podman
|
|
nodeset:
|
|
nodes:
|
|
- name: fedora-31
|
|
label: fedora-31
|
|
|
|
- job:
|
|
name: zuul-jobs-test-ensure-podman-ubuntu-bionic
|
|
description: Tests ensure-podman role on ubuntu-bionic
|
|
parent: zuul-jobs-test-ensure-podman
|
|
nodeset:
|
|
nodes:
|
|
- name: ubuntu-bionic
|
|
label: ubuntu-bionic
|
|
|
|
# -* AUTOGENERATED *-
|
|
# The following project section is autogenerated by
|
|
# tox -e update-test-platforms
|
|
# Please re-run to generate new job lists
|
|
|
|
- project:
|
|
check:
|
|
jobs: &id001
|
|
- zuul-jobs-test-ensure-docker-centos-7
|
|
- zuul-jobs-test-ensure-docker-centos-8
|
|
- zuul-jobs-test-ensure-docker-debian-stretch
|
|
- zuul-jobs-test-ensure-docker-fedora-31
|
|
- zuul-jobs-test-ensure-docker-ubuntu-bionic
|
|
- zuul-jobs-test-ensure-docker-ubuntu-xenial
|
|
- zuul-jobs-test-build-docker-image-release
|
|
- zuul-jobs-test-registry-docker
|
|
- zuul-jobs-test-registry-docker-multiarch
|
|
- zuul-jobs-test-registry-podman
|
|
- zuul-jobs-test-registry-buildset-registry
|
|
- zuul-jobs-test-registry-buildset-registry-k8s-docker
|
|
- zuul-jobs-test-registry-buildset-registry-k8s-crio
|
|
- zuul-jobs-test-registry-buildset-registry-openshift-docker
|
|
- zuul-jobs-test-ensure-kubernetes-docker
|
|
- zuul-jobs-test-ensure-kubernetes-crio
|
|
- zuul-jobs-test-ensure-podman-centos-8
|
|
- zuul-jobs-test-ensure-podman-fedora-31
|
|
- zuul-jobs-test-ensure-podman-ubuntu-bionic
|
|
gate:
|
|
jobs: *id001
|