From 83e84a11cf2dfffa75964ca879af1f69d8d06d38 Mon Sep 17 00:00:00 2001 From: Ryota MIBU Date: Mon, 7 Sep 2015 19:31:13 +0900 Subject: Fix docu_build.sh for doctor and promise JIRA: RELENG-29 Change-Id: Ia9b2f1ac3f420cd3d8e0be0addda8fe7802a982e Signed-off-by: Ryota MIBU --- jjb/doctor/docu-build.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'jjb') diff --git a/jjb/doctor/docu-build.sh b/jjb/doctor/docu-build.sh index ffb131114..2a253b555 100644 --- a/jjb/doctor/docu-build.sh +++ b/jjb/doctor/docu-build.sh @@ -33,9 +33,15 @@ if [[ $JOB_NAME =~ "verify" ]] ; then echo echo "Document is available at http://$gs_path_review" else - gsutil cp -r build/design_docs "gs://$gs_path_branch/" - gsutil cp -r build/requirements/html "gs://$gs_path_branch/" - gsutil cp -r build/requirements/latex/*.pdf "gs://$gs_path_branch/" + if [ -e build/design_docs ]; then + gsutil cp -r build/design_docs "gs://$gs_path_branch/" + fi + if [ -e build/requirements/html ]; then + gsutil cp -r build/requirements/html "gs://$gs_path_branch/" + fi + if [ -e build/requirements/latex ]; then + gsutil cp -r build/requirements/latex/*.pdf "gs://$gs_path_branch/" + fi echo echo "Latest document is available at http://$gs_path_branch" -- cgit 1.2.3-korg