Add specs publication jobs
We need to publish specs differently than docs. Change-Id: I54cded42086b2b3b39738cb8dc402e110d9eea6a
This commit is contained in:
parent
723ab60b6a
commit
680c0e2d90
21
playbooks/publish/openstack-specs-site.yaml
Normal file
21
playbooks/publish/openstack-specs-site.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- fetch-tox-output
|
||||
- role: fetch-sphinx-output
|
||||
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
|
||||
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
|
||||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: add-fileserver
|
||||
fileserver: "{{ site_logs }}"
|
||||
|
||||
- hosts: "{{ site_logs.fqdn }}"
|
||||
gather_facts: False
|
||||
tasks:
|
||||
|
||||
- name: Upload specs site to fileserver
|
||||
synchronize:
|
||||
src: "{{ zuul.executor.work_root }}/artifacts/"
|
||||
dest: "/srv/static/specs/"
|
||||
no_log: true
|
21
playbooks/publish/openstack-specs.yaml
Normal file
21
playbooks/publish/openstack-specs.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- fetch-tox-output
|
||||
- role: fetch-sphinx-output
|
||||
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
|
||||
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
|
||||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: add-fileserver
|
||||
fileserver: "{{ site_logs }}"
|
||||
|
||||
- hosts: "{{ site_logs.fqdn }}"
|
||||
gather_facts: False
|
||||
tasks:
|
||||
|
||||
- name: Upload specs to fileserver
|
||||
synchronize:
|
||||
src: "{{ zuul.executor.work_root }}/artifacts/"
|
||||
dest: "/srv/static/specs/{{ zuul.project.short_name }}"
|
||||
no_log: true
|
37
zuul.yaml
37
zuul.yaml
@ -419,6 +419,43 @@
|
||||
- secret: afsdocs_secret
|
||||
name: afs
|
||||
|
||||
- job:
|
||||
name: publish-openstack-specs
|
||||
description: |
|
||||
Publish OpenStack specs to static.openstack.org
|
||||
specs/{{ zuul.project.short_name }}
|
||||
final: True
|
||||
pre-run: playbooks/python-docs/pre
|
||||
run: playbooks/python-docs/run
|
||||
post-run: playbooks/publish/openstack-specs
|
||||
required-projects:
|
||||
- name: openstack/requirements
|
||||
roles:
|
||||
- zuul: openstack-infra/zuul-jobs
|
||||
- zuul: openstack-infra/openstack-zuul-jobs
|
||||
vars:
|
||||
tox_upper_constraints_file: "{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt"
|
||||
secrets:
|
||||
- site_logs
|
||||
|
||||
- job:
|
||||
name: publish-openstack-specs-site
|
||||
description: |
|
||||
Publish OpenStack specs site to static.openstack.org specs/
|
||||
final: True
|
||||
pre-run: playbooks/python-docs/pre
|
||||
run: playbooks/python-docs/run
|
||||
post-run: playbooks/publish/openstack-specs-site
|
||||
required-projects:
|
||||
- name: openstack/requirements
|
||||
roles:
|
||||
- zuul: openstack-infra/zuul-jobs
|
||||
- zuul: openstack-infra/openstack-zuul-jobs
|
||||
vars:
|
||||
tox_upper_constraints_file: "{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt"
|
||||
secrets:
|
||||
- site_logs
|
||||
|
||||
- job:
|
||||
name: publish-openstack-python-docs-infra
|
||||
description: |
|
||||
|
@ -64,6 +64,13 @@ job-mapping:
|
||||
|
||||
- old: '^hook-.*-rtfd'
|
||||
new: trigger-readthedocs
|
||||
|
||||
- old: publish-specs-site
|
||||
new: publish-openstack-specs-site
|
||||
|
||||
- old: '^.*-publish-specs'
|
||||
new: publish-openstack-specs
|
||||
|
||||
# List of project-template mapping data. In each entry:
|
||||
# old
|
||||
# v2 project-template name. If a template is listed here, the old template
|
||||
|
Loading…
x
Reference in New Issue
Block a user