From 5b0edc2c1b26e5b9eb5f97a067ebb95fa2c1c739 Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Wed, 27 May 2015 13:47:55 -0400 Subject: Clean up temporary artifacts on merge Change-Id: I2c7bac351205e5327ad1dd084b16cea4eed1bfef JIRA: DOCS-36 Signed-off-by: Aric Gardner --- jjb/opnfvdocs/docu-build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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" + -- cgit 1.2.3-korg