diff options
author | Aric Gardner <agardner@linuxfoundation.org> | 2015-05-28 15:05:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-05-28 15:05:19 +0000 |
commit | 6d1c6e1be677099e0f89574ffd405de99de3568f (patch) | |
tree | b97742a1918a6d248d2e7ad20bfd0320197d6997 /jjb/opnfvdocs/docu-build.sh | |
parent | 31db2233eb9e07a979a14c49bbf7bff316636c40 (diff) | |
parent | 5b0edc2c1b26e5b9eb5f97a067ebb95fa2c1c739 (diff) |
Merge "Clean up temporary artifacts on merge"
Diffstat (limited to 'jjb/opnfvdocs/docu-build.sh')
-rw-r--r-- | jjb/opnfvdocs/docu-build.sh | 8 |
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" + |