summaryrefslogtreecommitdiffstats
path: root/jjb/doctor
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/doctor')
-rw-r--r--jjb/doctor/docu-build.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/jjb/doctor/docu-build.sh b/jjb/doctor/docu-build.sh
index 61613453f..ffb131114 100644
--- a/jjb/doctor/docu-build.sh
+++ b/jjb/doctor/docu-build.sh
@@ -37,13 +37,11 @@ else
gsutil cp -r build/requirements/html "gs://$gs_path_branch/"
gsutil cp -r build/requirements/latex/*.pdf "gs://$gs_path_branch/"
echo
- echo "Document is available at http://$gs_path_branch"
-fi
+ echo "Latest document is available at http://$gs_path_branch"
-if [[ $GERRIT_EVENT_TYPE = "change-merged" ]] ; then
- echo
- echo "Clean Out-of-dated Documents"
- echo "----------------------------"
- echo
- gsutil rm -r "gs://$gs_path_review" || true
+ if gsutil ls "gs://$gs_path_review" > /dev/null 2>&1 ; then
+ echo
+ echo "Deleting Out-of-dated Documents..."
+ gsutil rm -r "gs://$gs_path_review"
+ fi
fi