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:
parent
08b7f94790
commit
20d9ecd2b1
12
playbooks/publish/releasenotes.yaml
Normal file
12
playbooks/publish/releasenotes.yaml
Normal 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
|
@ -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"
|
||||
|
@ -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: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user