diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2015-09-07 19:31:13 +0900 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2015-09-08 07:31:53 +0000 |
commit | 83e84a11cf2dfffa75964ca879af1f69d8d06d38 (patch) | |
tree | 51d2ef1dccb464e5d035d027415e0e7d9ac1a3d5 | |
parent | 412be7459ab7731effcb94fb8e5d69846b097320 (diff) |
Fix docu_build.sh for doctor and promise
JIRA: RELENG-29
Change-Id: Ia9b2f1ac3f420cd3d8e0be0addda8fe7802a982e
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-rw-r--r-- | jjb/doctor/docu-build.sh | 12 |
1 files changed, 9 insertions, 3 deletions
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" |