Create publish-api-ref/guide jobs

Create new publish-api-ref and publish-api-guide jobs.

Change-Id: I9ca650def0c69111f5e34a90394399e8bc113960
Needed-By: I65384ab90d4639b8def2992ae965e2d037e9408d
This commit is contained in:
Andreas Jaeger 2017-10-11 19:50:59 +02:00
parent 9a8b874799
commit b453edad93
3 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,15 @@
- hosts: all
roles:
- fetch-tox-output
- role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/api-guide/doc/build/html"
- role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/api-guide/doc/build/html"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
- hosts: localhost
roles:
- create-afs-token
- role: upload-afs
afs_target: "{{ afs.path }}/api-guide/{{ zuul.project.short_name }}"
- destroy-afs-token

View File

@ -0,0 +1,15 @@
- hosts: all
roles:
- fetch-tox-output
- role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/api-ref/doc/build/html"
- role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/api-ref/doc/build/html"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
- hosts: localhost
roles:
- create-afs-token
- role: upload-afs
afs_target: "{{ afs.path }}/api-ref/{{ zuul.project.short_name }}"
- destroy-afs-token

View File

@ -426,6 +426,46 @@
- secret: afsdeveloper_secret
name: afs
- job:
name: publish-api-guide
description: |
Publish api-guide document to
https://developer.openstack.org/api-guide.
pre-run: playbooks/python-docs/pre
run: playbooks/project-config/run-tox
post-run: playbooks/publish/api-guide
roles:
- zuul: openstack-infra/zuul-jobs
- zuul: openstack-infra/openstack-zuul-jobs
# We only publish the master branch, so no need to run
# for changes on other branches.
branches: master
vars:
tox_envlist: api-guide
secrets:
- secret: afsdeveloper_secret
name: afs
- job:
name: publish-api-ref
description: |
Publish api-ref document to
https://developer.openstack.org/api-ref.
pre-run: playbooks/python-docs/pre
run: playbooks/project-config/run-tox
post-run: playbooks/publish/api-ref
roles:
- zuul: openstack-infra/zuul-jobs
- zuul: openstack-infra/openstack-zuul-jobs
# We only publish the master branch, so no need to run
# for changes on other branches.
branches: master
vars:
tox_envlist: api-ref
secrets:
- secret: afsdeveloper_secret
name: afs
- job:
name: release-openstack-javascript
parent: publish-openstack-artifacts