summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorRyota Mibu <r-mibu@cq.jp.nec.com>2016-02-07 06:45:24 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-02-07 06:45:24 +0000
commit5a662331c040c953520574df0baab7eadc359147 (patch)
treea636a07bddc3387a5c5bd409791f7d794e9ba1c8 /jjb
parentc6bafaf81fd28a17143ab6f2aa98ba38ef372cf9 (diff)
parent0558c585978c1d37aa74436bb09f4d5d4c2c1aad (diff)
Merge "Need to have reviews under /$PROJECT/$review_number"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/releng-macros.yaml9
1 files changed, 8 insertions, 1 deletions
diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml
index 5d9570705..b43a76d5f 100644
--- a/jjb/releng-macros.yaml
+++ b/jjb/releng-macros.yaml
@@ -195,7 +195,7 @@
echo "###########################"
echo
- gs_base="artifacts.opnfv.org/review"
+ gs_base="artifacts.opnfv.org/$PROJECT/review"
gs_path="$gs_base/$GERRIT_CHANGE_NUMBER"
local_path="upload/$GERRIT_CHANGE_NUMBER"
@@ -283,6 +283,13 @@
[[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
+ gs_path="artifacts.opnfv.org/$PROJECT/review/$GERRIT_CHANGE_NUMBER"
+
+ if gsutil ls "gs://$gs_path" > /dev/null 2>&1 ; then
+ echo
+ echo "Deleting Out-of-dated Documents..."
+ gsutil -m rm -r "gs://$gs_path"
+ fi
gs_path="artifacts.opnfv.org/review/$GERRIT_CHANGE_NUMBER"
if gsutil ls "gs://$gs_path" > /dev/null 2>&1 ; then