Use native v3 publishing for project-team-guide

Create new job publish-openstack-sphinx-docs-direct that does not
handle branches and use it for project-team-guide.

Needed-By: Ia5ea64e7ab0483cb37bdd38045bbc9fb4528ac80
Change-Id: I0e0c12bba3a27c8ac7d5cb9d24ede342a616a28d
This commit is contained in:
Andreas Jaeger 2017-10-22 12:05:57 +02:00 committed by Andreas Jaeger
parent 5fca975f05
commit 20a2c591b7
3 changed files with 41 additions and 5 deletions

View File

@ -0,0 +1,7 @@
- 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"
when: zuul_success | bool

View File

@ -190,8 +190,11 @@
- job:
name: publish-openstack-sphinx-docs
description: |
Publish the results of the buld-openstack-sphinx-docs job to
/afs/.openstack.org/docs/{{ zuul.project.short_name }}
Publish the results of the build-openstack-sphinx-docs job to
/afs/.openstack.org/docs/{{ zuul.project.short_name }}.
Publishes depending on branch to latest/ (for master), or the
basename of the branch like pike (for stable/pike).
final: true
pre-run: playbooks/python-docs/pre.yaml
run: playbooks/python-docs/run.yaml
@ -209,6 +212,32 @@
- secret: afsdocs_secret
name: afs
- job:
name: publish-openstack-sphinx-docs-direct
description: |
Publish the results of the build-openstack-sphinx-docs job to
/afs/.openstack.org/docs/{{ zuul.project.short_name }}
Publishing is done from master branch directly without using /latest.
final: true
pre-run: playbooks/python-docs/pre.yaml
run: playbooks/python-docs/run.yaml
post-run:
- playbooks/python-docs/post-direct.yaml
- playbooks/publish/openstack-afs.yaml
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"
branches:
- master
secrets:
- secret: afsdocs_secret
name: afs
- job:
name: publish-openstack-contributor-guide
description: |

View File

@ -21353,13 +21353,13 @@
- system-required
check:
jobs:
- build-openstack-sphinx-docs: {}
- build-openstack-sphinx-docs
gate:
jobs:
- build-openstack-sphinx-docs: {}
- build-openstack-sphinx-docs
post:
jobs:
- legacy-project-team-guide-publish
- publish-openstack-sphinx-docs-direct
- project:
name: openstack/proliantutils