From 5d94b5b6c1fdd94ace66da283ccdd8b91c11f3c4 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 13 Apr 2020 16:16:19 +0300 Subject: [PATCH] Fix update of the deploy guide Our deploy guide don't get updated and contain almost "static" tag while OSA checkout as deploy-guide publishing gets updated only when it's files are changed [1] So we replace default template with our own, which is also triggered when we bump roles in a-r-r. [1] https://opendev.org/openstack/openstack-zuul-jobs/src/branch/master/zuul.d/project-templates.yaml#L1389-L1395 Change-Id: I99e5c5698d2067709203c1a4e7e6b54f09dcbe34 --- zuul.d/project-templates.yaml | 24 ++++++++++++++++++++++++ zuul.d/project.yaml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/zuul.d/project-templates.yaml b/zuul.d/project-templates.yaml index ff3545677e..a62e0cd509 100644 --- a/zuul.d/project-templates.yaml +++ b/zuul.d/project-templates.yaml @@ -164,3 +164,27 @@ gate: jobs: - openstack-ansible-linters-ubuntu-bionic + +- project-template: + name: openstack-ansible-deploy-guide-jobs + description: | + Build the deploy-guide document and publish the result + using a promote job. + check: + jobs: + - build-openstack-deploy-guide: + files: &deploy-guide-triggers + - ^deploy-guide/.* + - ansible-role-requirements.yml + - bindep.txt + - doc/requirements.txt + - test-requirements.txt + - tox.ini + gate: + jobs: + - build-openstack-deploy-guide: + files: *deploy-guide-triggers + promote: + jobs: + - promote-deploy-guide: + files: *deploy-guide-triggers diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index c7101727b5..d1418ca4cc 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -14,7 +14,7 @@ - project: templates: - - deploy-guide-jobs + - openstack-ansible-deploy-guide-jobs - openstack-ansible-deploy-base-jobs - openstack-ansible-deploy-aio_lxc-jobs - openstack-ansible-deploy-aio_distro_lxc-jobs