summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2015-05-28 15:05:19 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-05-28 15:05:19 +0000
commit6d1c6e1be677099e0f89574ffd405de99de3568f (patch)
treeb97742a1918a6d248d2e7ad20bfd0320197d6997
parent31db2233eb9e07a979a14c49bbf7bff316636c40 (diff)
parent5b0edc2c1b26e5b9eb5f97a067ebb95fa2c1c739 (diff)
Merge "Clean up temporary artifacts on merge"
-rw-r--r--jjb/opnfvdocs/docu-build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/jjb/opnfvdocs/docu-build.sh b/jjb/opnfvdocs/docu-build.sh
index 848466e03..ade400d89 100644
--- a/jjb/opnfvdocs/docu-build.sh
+++ b/jjb/opnfvdocs/docu-build.sh
@@ -70,4 +70,12 @@ for img in "${{images[@]}}"; do
done
+if [[ $GERRIT_EVENT_TYPE = "change-merged" ]] ; then
+ patchset="/$GERRIT_CHANGE_NUMBER"
+ if [ ! -z "$patchset" ]; then
+ gsutil rm gs://artifacts.opnfv.org/"$project""$patchset"/**
+ fi
+fi
+
echo -e "$links"
+