Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Install yq in docker-get-yaml-tag.sh
[releng/global-jjb.git]
/
shell
/
check-info-votes.sh
diff --git
a/shell/check-info-votes.sh
b/shell/check-info-votes.sh
index
72dec3b
..
1e02a38
100644
(file)
--- a/
shell/check-info-votes.sh
+++ b/
shell/check-info-votes.sh
@@
-34,7
+34,6
@@
$pip install --user lftools
$pip install --user lftools[nexus]
$pip install --user jsonschema
$pip install --user lftools[nexus]
$pip install --user jsonschema
-change="$(echo "$GERRIT_CHANGE_URL" | awk -F"/" '{print $NF}')"
echo "Checking votes:"
lftools infofile check-votes INFO.yaml "$GERRIT_URL" "$ref" > gerrit_comment.txt
exit_status="$?"
echo "Checking votes:"
lftools infofile check-votes INFO.yaml "$GERRIT_URL" "$ref" > gerrit_comment.txt
exit_status="$?"
@@
-45,5
+44,7
@@
if [[ "$exit_status" -ne 0 ]]; then
exit "$exit_status"
else
echo "Vote completed submitting review"
exit "$exit_status"
else
echo "Vote completed submitting review"
- ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review "$change" --submit
+ ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review "$GERRIT_PATCHSET_REVISION" --verified 1
+ sleep 5
+ ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review "$GERRIT_PATCHSET_REVISION" --submit
fi
fi