Move openstack-doc-build into project-config

Because we want to publish to docs-draft.o.o, we need to move this job
intree and use the existing secret information.

Change-Id: I1aaa5ea2c52970908e46f2024eab9fe748410da9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-09-15 12:13:56 -04:00 committed by Monty Taylor
parent 2aa5685673
commit 25a390d3fd
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
5 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,6 @@
- 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 }}/docs-draft"

View File

@ -0,0 +1,7 @@
- hosts: all
roles:
- role: bindep
bindep_profile: test
bindep_dir: "src/{{ zuul.project.canonical_name }}"
- revoke-sudo
- ensure-tox

View File

@ -0,0 +1,6 @@
- hosts: all
roles:
- role: tox
tox_upper_constraints_file: "{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt"
tox_envlist: venv
tox_extra_args: -vv python setup.py build_sphinx

View File

@ -0,0 +1,22 @@
- hosts: localhost
roles:
- role: add-fileserver
fileserver: "{{ site_docs_draft }}"
- hosts: "{{ fileserver.fqdn }}"
gather_facts: False
tasks:
- include_role:
name: set-zuul-log-path-fact
- name: Create docs directories
file:
path: "{{ fileserver.path }}/{{ zuul_log_path }}"
state: directory
recurse: yes
mode: 0775
- name: Upload docs to log site_docs_draft
synchronize:
src: "{{ zuul.executor.work_root }}/docs-draft/"
dest: "{{ fileserver.path }}/{{ zuul_log_path }}/"

View File

@ -391,6 +391,23 @@
name: pypi_info
- gpg_key
- job:
name: openstack-doc-build
pre-run: playbooks/python-docs/pre
run: playbooks/python-docs/run
post-run:
- playbooks/python-docs/post
- playbooks/publish/openstack-docs-draft
required-projects:
- name: openstack/requirements
roles:
- zuul: openstack-infra/zuul-jobs
secrets:
- secret: site_docs_draft
name: fileserver
vars:
tox_constraints_file: "{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt"
# NOTE(pabelanger): We have related untrusted job in openstack-zuul-jobs called
# openstack-doc-build. We should discuss post PTG how to potentially deal with
# duplication.