Clean up temporary artifacts on merge 74/674/1
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 27 May 2015 17:47:55 +0000 (13:47 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Wed, 27 May 2015 17:47:55 +0000 (13:47 -0400)
Change-Id: I2c7bac351205e5327ad1dd084b16cea4eed1bfef
JIRA: DOCS-36
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
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"
+