summaryrefslogtreecommitdiffstats
path: root/jjb/opnfvdocs
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2015-05-27 13:47:55 -0400
committerAric Gardner <agardner@linuxfoundation.org>2015-05-27 13:47:55 -0400
commit5b0edc2c1b26e5b9eb5f97a067ebb95fa2c1c739 (patch)
tree34efe209ada88b84d33a6ebcf67bbbe946e2a0a3 /jjb/opnfvdocs
parent562f180eecfee9ea6f0f67c10137a759c2de8377 (diff)
Clean up temporary artifacts on merge
Change-Id: I2c7bac351205e5327ad1dd084b16cea4eed1bfef JIRA: DOCS-36 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Diffstat (limited to 'jjb/opnfvdocs')
-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"
+