From 4cb4286f84f6cc9beaf6233a4ab4c20dfb9175c1 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 17 Feb 2018 18:44:46 +0100 Subject: [PATCH] Sync sphinx post jobs Run sphinx collection jobs for all post jobs - like we do in playbooks/publish and in sphinx/post-direct.yaml - only in case of success. No need to try copying those if anything fails. Change-Id: I1cddee3eef13bf4caac8e6093ca1980849325d70 --- playbooks/sphinx/post-infra.yaml | 4 +++- playbooks/sphinx/post.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/playbooks/sphinx/post-infra.yaml b/playbooks/sphinx/post-infra.yaml index 0e26929ee8..5879ccb108 100644 --- a/playbooks/sphinx/post-infra.yaml +++ b/playbooks/sphinx/post-infra.yaml @@ -1,6 +1,8 @@ - hosts: all roles: - - prepare-infra-docs-for-afs + - role: prepare-infra-docs-for-afs + when: zuul_success | bool - role: fetch-sphinx-output sphinx_output_suffix: "/" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" + when: zuul_success | bool diff --git a/playbooks/sphinx/post.yaml b/playbooks/sphinx/post.yaml index 8bbf44aee7..9d32fdf4b6 100644 --- a/playbooks/sphinx/post.yaml +++ b/playbooks/sphinx/post.yaml @@ -1,6 +1,8 @@ - hosts: all roles: - - prepare-docs-for-afs + - role: prepare-docs-for-afs + when: zuul_success | bool - role: fetch-sphinx-output sphinx_output_suffix: "/" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" + when: zuul_success | bool