Merge "Clean up temporary artifacts on merge"
authorAric Gardner <agardner@linuxfoundation.org>
Thu, 28 May 2015 15:05:19 +0000 (15:05 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Thu, 28 May 2015 15:05:19 +0000 (15:05 +0000)
jjb/opnfvdocs/docu-build.sh

index 848466e..ade400d 100644 (file)
@@ -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"
+