summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-01-23 20:45:21 +0000
committerGerrit Code Review <review@openstack.org>2015-01-23 20:45:21 +0000
commita834cd62a685d7b803eb677955b87615ebcd1d30 (patch)
tree4cc657bd68fecc6b0fb418490570087674c8cef9 /tools
parentcc7cf6f1614c2da176399aa66fd6183393240db1 (diff)
parente471f5b5d8f8685b83b558fa54da0e4fd2d00d4a (diff)
downloadnova-a834cd62a685d7b803eb677955b87615ebcd1d30.tar.gz
Merge "include python-novaclient in abandon policy"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/abandon_old_reviews.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/abandon_old_reviews.sh b/tools/abandon_old_reviews.sh
index 21e1bcd18c..c95b95ae4f 100755
--- a/tools/abandon_old_reviews.sh
+++ b/tools/abandon_old_reviews.sh
@@ -33,11 +33,13 @@ function abandon_review {
shift
local msg=$@
echo "Abandoning $gitid"
+ # echo ssh review.openstack.org gerrit review $gitid --abandon --message \"$msg\"
ssh review.openstack.org gerrit review $gitid --abandon --message \"$msg\"
}
+PROJECTS="(project:openstack/nova OR project:openstack/python-novaclient)"
-blocked_reviews=$(ssh review.openstack.org "gerrit query --current-patch-set --format json project:openstack/nova status:open age:4w label:Code-Review<=-2" | jq .currentPatchSet.revision | grep -v null | sed 's/"//g')
+blocked_reviews=$(ssh review.openstack.org "gerrit query --current-patch-set --format json $PROJECTS status:open age:4w label:Code-Review<=-2" | jq .currentPatchSet.revision | grep -v null | sed 's/"//g')
blocked_msg=$(cat <<EOF
@@ -62,7 +64,7 @@ done
# then purge all the reviews that are > 4w with no changes and Jenkins has -1ed
-failing_reviews=$(ssh review.openstack.org "gerrit query --current-patch-set --format json project:openstack/nova status:open age:4w NOT label:Verified>=1,jenkins" | jq .currentPatchSet.revision | grep -v null | sed 's/"//g')
+failing_reviews=$(ssh review.openstack.org "gerrit query --current-patch-set --format json $PROJECTS status:open age:4w NOT label:Verified>=1,jenkins" | jq .currentPatchSet.revision | grep -v null | sed 's/"//g')
failing_msg=$(cat <<EOF