From 7081efc3e001675f99627533bc57e852898308a7 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 9 Jan 2023 08:56:57 -0800 Subject: [PATCH] Add opendev nox docs promotion This adds a new publish-opendev-nox-docs project-template which will run opendev-nox-docs and opendev-promote-docs (with the appropriate var for nox jobs set) to promote and publish our docs using nox based jobs. Change-Id: I7ed1f439062f13a15fd5a24fbb77d4135cfb08ee --- zuul.d/project-templates.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/zuul.d/project-templates.yaml b/zuul.d/project-templates.yaml index d6b32a8..d06c251 100644 --- a/zuul.d/project-templates.yaml +++ b/zuul.d/project-templates.yaml @@ -26,3 +26,34 @@ promote: jobs: - opendev-promote-docs + +- project-template: + name: build-opendev-nox-docs + description: | + Build documentation with "nox". + check: + jobs: + - opendev-nox-docs + gate: + jobs: + - opendev-nox-docs + +- project-template: + name: publish-opendev-nox-docs + description: | + Build and publish documentation with "nox". + + The documents that are build in the "gate" pipeline + are published via a promote job to + https://docs.opendev.org/{{ zuul.project.name }}. + check: + jobs: + - opendev-nox-docs + gate: + jobs: + - opendev-nox-docs + promote: + jobs: + - opendev-promote-docs: + vars: + download_artifact_job: opendev-nox-docs