From 2e6eaa678fb10e8468a0cd23e0296211229d79a3 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 20 Feb 2020 17:59:04 +0100 Subject: [PATCH] Add AFS publish job for releases repo Add new job publish-tox-docs-releases for publishing of releases repo to new AFS location to obsolete static.o.o publishing. Task: #37724 Story: #2006598 Needed-By: https://review.opendev.org/708918 Change-Id: I804f6ddb0b10b4aa3fac6a3cf11a2d23b8b4e730 --- playbooks/publish/releases-afs.yaml | 9 +++++++++ zuul.d/jobs.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 playbooks/publish/releases-afs.yaml diff --git a/playbooks/publish/releases-afs.yaml b/playbooks/publish/releases-afs.yaml new file mode 100644 index 0000000000..b2146fc6c0 --- /dev/null +++ b/playbooks/publish/releases-afs.yaml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: create-afs-token + when: zuul_success | bool + - role: upload-afs-roots + afs_target: "/afs/.openstack.org/project/releases.openstack.org" + when: zuul_success | bool + - role: destroy-afs-token + when: zuul_success | bool diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 119326aec9..b1c06cce41 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -511,6 +511,31 @@ vars: static_target: "{{ zuul.project.short_name }}" +- job: + name: publish-tox-docs-releases + description: | + Publish content of openstack/releases to + /afs/.openstack.org/project/releases.openstack.org/. + + Builds the docs using ``tox -e docs``. + final: true + roles: + - zuul: openstack/openstack-zuul-jobs + pre-run: playbooks/project-config/pre-tox.yaml + run: playbooks/project-config/run-tox.yaml + post-run: + - playbooks/project-config/post-tox.yaml + - playbooks/sphinx/post-infra.yaml + - playbooks/publish/releases-afs.yaml + allowed-projects: + - openstack/releases + secrets: + - secret: afsdocs_secret + name: afs + vars: + tox_envlist: docs + afs_subpath: "/{{ zuul.project.short_name }}" + - job: name: promote-tox-docs-site-base parent: opendev-promote-docs-base