From 97bf7bc8080364b333d5a783495b32d9b9183f27 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 20 Oct 2017 20:07:18 +0200 Subject: [PATCH] Fix placement-api jobs Create new publish-placement-api-ref job and use the new build-placement-api-ref job in nova. Depends-On: Ib50a094db845f63d802c0f76f4a9d44517f401fa Needed-By: Ia62e5f9f14716d3595b2d14edfe0781d4e7af9ac Change-Id: I6c57d43b464a26eb396f3c12d5a14b6b21fa2ef8 --- playbooks/publish/placement-api-ref.yaml | 15 +++++++++++++++ zuul.d/jobs.yaml | 20 ++++++++++++++++++++ zuul.d/projects.yaml | 15 +++------------ 3 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 playbooks/publish/placement-api-ref.yaml diff --git a/playbooks/publish/placement-api-ref.yaml b/playbooks/publish/placement-api-ref.yaml new file mode 100644 index 0000000000..feb6ed9e60 --- /dev/null +++ b/playbooks/publish/placement-api-ref.yaml @@ -0,0 +1,15 @@ +- hosts: all + roles: + - fetch-tox-output + - role: write-root-marker + root_marker_dir: "src/{{ zuul.project.canonical_name }}/placement-api-ref/build/html" + - role: fetch-sphinx-output + sphinx_output_src: "{{ zuul.project.src_dir }}/placement-api-ref/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/placement" + - destroy-afs-token diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 3a622d9027..d7c849bf86 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -532,6 +532,26 @@ - secret: afsdeveloper_secret name: afs +- job: + name: publish-placement-api-ref + description: | + Publish placement-api-ref document to + https://developer.openstack.org/api-ref/placement. + pre-run: playbooks/python-docs/pre + run: playbooks/project-config/run-tox + post-run: playbooks/publish/placement-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: placement-api-ref + secrets: + - secret: afsdeveloper_secret + name: afs + - job: name: publish-deploy-guide description: | diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml index ec9cc12847..4e0d1699d3 100644 --- a/zuul.d/projects.yaml +++ b/zuul.d/projects.yaml @@ -16991,11 +16991,7 @@ - ^nova/locale/.*$ - ^nova/tests/.*$ - ^tests-py3.txt$ - - legacy-gate-placement-api-ref: - branches: master - files: - - ^tox.ini$ - - ^placement-api-ref/.* + - build-placement-api-ref - legacy-tempest-dsvm-neutron-full: branches: ^(?!driverfixes/).*$ irrelevant-files: @@ -17082,11 +17078,7 @@ - ^tests-py3.txt$ - ^tools/.*$ - ^tox.ini$ - - legacy-gate-placement-api-ref: - branches: master - files: - - ^tox.ini$ - - ^placement-api-ref/.* + - build-placement-api-ref - legacy-tempest-dsvm-neutron-full: branches: ^(?!driverfixes/).*$ irrelevant-files: @@ -17122,8 +17114,7 @@ post: jobs: - openstack-tox-cover - - legacy-placement-api-ref: - branches: master + - publish-placement-api-ref experimental: jobs: - legacy-tempest-dsvm-nova-v20-api: