Don't pause image build jobs in periodic buildset

Some clouds may not support number of nodes needed by buildset
in the case when affiliation is required.
Changing logic to avoid pausing build job before uploading to dockerhub
and promotion. This will also lead to uploading a temporary tag to
dockerhub prior test deployment is done.

Change-Id: I49ddd4c3992ce1e4c6a0e4a84374df920f308e56
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
Andrii Ostapenko 2020-12-22 13:24:54 -06:00 committed by Andrii Ostapenko
parent 76b5445862
commit 8e3c6052da
18 changed files with 63 additions and 21 deletions

View File

@ -24,6 +24,9 @@
periodic:
jobs:
- openstack-helm-images-upload-alerta
- openstack-helm-images-promote-alerta:
dependencies:
- name: openstack-helm-images-aio-monitoring
- job:
name: openstack-helm-images-build-alerta

View File

@ -114,10 +114,6 @@
run: zuul.d/playbooks/build.yml
post-run:
- zuul.d/playbooks/upload.yml
# Synthetic logic required with current implementation.
# Standalone promote job starts once upload one pauses that is undesired,
# thus running promote role here for periodic pipeline
- zuul.d/playbooks/periodic-promote.yml
match-on-config-updates: false
dependencies:
- name: opendev-buildset-registry

View File

@ -24,6 +24,9 @@
periodic:
jobs:
- openstack-helm-images-upload-elasticsearch-s3
- openstack-helm-images-promote-elasticsearch-s3:
dependencies:
- name: openstack-helm-images-aio-logging
- job:
name: openstack-helm-images-build-elasticsearch-s3

View File

@ -24,6 +24,9 @@
periodic:
jobs:
- openstack-helm-images-upload-fluentd
- openstack-helm-images-promote-fluentd:
dependencies:
- name: openstack-helm-images-aio-monitoring
- job:
name: openstack-helm-images-build-fluentd

View File

@ -26,6 +26,10 @@
periodic:
jobs:
- openstack-helm-images-upload-libvirt
- openstack-helm-images-promote-libvirt:
dependencies:
- name: openstack-helm-images-compute-kit-stein-ubuntu_bionic
- name: openstack-helm-images-compute-kit-train-ubuntu_bionic
- job:
name: openstack-helm-images-build-libvirt

View File

@ -26,6 +26,12 @@
periodic:
jobs:
- openstack-helm-images-upload-mariadb
- openstack-helm-images-promote-mariadb:
dependencies:
- name: openstack-helm-images-compute-kit-stein-ubuntu_bionic
- name: openstack-helm-images-compute-kit-train-ubuntu_bionic
- name: openstack-helm-images-cinder-stein-ubuntu_bionic
- name: openstack-helm-images-cinder-train-ubuntu_bionic
- job:
name: openstack-helm-images-build-mariadb

View File

@ -24,6 +24,15 @@
periodic:
jobs:
- openstack-helm-images-upload-minikube-aio
- openstack-helm-images-promote-minikube-aio:
dependencies:
- name: openstack-helm-images-aio-monitoring
- name: openstack-helm-images-aio-logging
- name: openstack-helm-images-compute-kit-stein-ubuntu_bionic
- name: openstack-helm-images-compute-kit-train-ubuntu_bionic
- name: openstack-helm-images-cinder-stein-ubuntu_bionic
- name: openstack-helm-images-cinder-train-ubuntu_bionic
- name: openstack-helm-images-horizon-stein-ubuntu_bionic
- job:
name: openstack-helm-images-build-minikube-aio

View File

@ -24,6 +24,9 @@
periodic:
jobs:
- openstack-helm-images-upload-nagios
- openstack-helm-images-promote-nagios:
dependencies:
- name: openstack-helm-images-aio-monitoring
- job:
name: openstack-helm-images-build-nagios

View File

@ -24,6 +24,9 @@
periodic:
jobs:
- openstack-helm-images-upload-node-problem-detector
- openstack-helm-images-promote-node-problem-detector:
dependencies:
- name: openstack-helm-images-aio-monitoring
- job:
name: openstack-helm-images-build-node-problem-detector

View File

@ -55,7 +55,16 @@
- openstack-helm-images-upload-openstack-loci-rocky-ubuntu_xenial
- openstack-helm-images-upload-openstack-loci-rocky-ubuntu_bionic
- openstack-helm-images-upload-openstack-loci-stein-ubuntu_bionic
- openstack-helm-images-promote-openstack-loci-stein-ubuntu_bionic:
dependencies:
- name: openstack-helm-images-compute-kit-stein-ubuntu_bionic
- name: openstack-helm-images-cinder-stein-ubuntu_bionic
- name: openstack-helm-images-horizon-stein-ubuntu_bionic
- openstack-helm-images-upload-openstack-loci-train-ubuntu_bionic
- openstack-helm-images-promote-openstack-loci-train-ubuntu_bionic:
dependencies:
- name: openstack-helm-images-compute-kit-train-ubuntu_bionic
- name: openstack-helm-images-cinder-train-ubuntu_bionic
- openstack-helm-images-upload-openstack-loci-ussuri-ubuntu_bionic
- openstack-helm-images-upload-openstack-loci-master-ubuntu_bionic

View File

@ -26,6 +26,12 @@
periodic:
jobs:
- openstack-helm-images-upload-openvswitch
- openstack-helm-images-promote-openvswitch:
dependencies:
- name: openstack-helm-images-compute-kit-stein-ubuntu_bionic
- name: openstack-helm-images-compute-kit-train-ubuntu_bionic
- name: openstack-helm-images-cinder-stein-ubuntu_bionic
- name: openstack-helm-images-cinder-train-ubuntu_bionic
- job:
name: openstack-helm-images-build-openvswitch

View File

@ -26,6 +26,11 @@
periodic:
jobs:
- openstack-helm-images-upload-osh-selenium
- openstack-helm-images-promote-osh-selenium:
dependencies:
- name: openstack-helm-images-aio-monitoring
- name: openstack-helm-images-aio-logging
- name: openstack-helm-images-horizon-stein-ubuntu_bionic
- job:
name: openstack-helm-images-build-osh-selenium

View File

@ -26,6 +26,9 @@
periodic:
jobs:
- openstack-helm-images-upload-ospurge
- openstack-helm-images-promote-ospurge:
dependencies:
- name: openstack-helm-images-compute-kit-stein-ubuntu_bionic
- job:
name: openstack-helm-images-build-ospurge

View File

@ -26,6 +26,9 @@
periodic:
jobs:
- openstack-helm-images-upload-patroni
- openstack-helm-images-promote-patroni:
dependencies:
- name: openstack-helm-images-aio-monitoring
- job:
name: openstack-helm-images-build-patroni

View File

@ -80,10 +80,3 @@
loop: "{{ docker_images }}"
loop_control:
loop_var: zj_image
- name: Pause the job
when: buildset_registry is defined and zuul.pipeline != 'check'
zuul_return:
data:
zuul:
pause: true

View File

@ -11,9 +11,3 @@
loop: "{{ docker_images }}"
loop_control:
loop_var: zj_image
- name: Pause the job
when: buildset_registry is defined and zuul.pipeline != 'check'
zuul_return:
data:
zuul:
pause: true

View File

@ -1,4 +0,0 @@
- hosts: all
roles:
- role: promote-docker-image
when: zuul.pipeline == 'periodic'

View File

@ -24,6 +24,9 @@
periodic:
jobs:
- openstack-helm-images-upload-prometheus-openstack-exporter
- openstack-helm-images-promote-prometheus-openstack-exporter:
dependencies:
- name: openstack-helm-images-aio-monitoring
- job:
name: openstack-helm-images-build-prometheus-openstack-exporter