Add releasenotes publication job

We need to publish releasenotes to docs/releasenotes, so we need a new
publication playbook.

While doing this, it became clear that doc publication jobs were broken
(the infra ones were correct) The publish playbook looks for docs in
artigfacts, but the fetch was putting them into logs like we do for
builds.

Depends-On: I0ba254501e9f913fd0aff8a03f1b4f127560c759
Change-Id: I3e484efba79878ec460e124f611febf0d7454ce3
This commit is contained in:
Monty Taylor 2017-10-01 10:50:58 -05:00
parent 08b7f94790
commit 20d9ecd2b1
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- prepare-docs-for-afs
- role: fetch-tox-output
tox_envlist: releasenotes
- role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/doc/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
- create-afs-token
- role: upload-afs
afs_target: "{{ afs.path }}/releasenotes/{{ zuul.project.short_name }}"
- destroy-afs-token

View File

@ -4,4 +4,4 @@
- fetch-tox-output
- role: fetch-sphinx-output
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
zuul_executor_dest: "{{ zuul.executor.log_root }}"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"

View File

@ -144,6 +144,26 @@
- secret: afsdocs_secret
name: afs
- job:
name: publish-openstack-releasenotes
description: |
Publish the results of build-openstack-releasenotes to
/afs/.openstack.org/docs/releasenotes/{{ zuul.project.short_name }}
final: True
pre-run: playbooks/python-docs/pre
run: playbooks/releasenotes/run
post-run: playbooks/publish/releasenotes
required-projects:
- name: openstack/requirements
roles:
- zuul: openstack-infra/zuul-jobs
- zuul: openstack-infra/openstack-zuul-jobs
vars:
tox_constraints_file: "{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt"
secrets:
- secret: afsdocs_secret
name: afs
- job:
name: publish-openstack-specs
description: |