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
Fix: Update Gradle publish job
[releng/global-jjb.git]
/
shell
/
check-info-votes.sh
diff --git
a/shell/check-info-votes.sh
b/shell/check-info-votes.sh
index
fb489af
..
69d0b48
100644
(file)
--- a/
shell/check-info-votes.sh
+++ b/
shell/check-info-votes.sh
@@
-27,22
+27,23
@@
if [ -d "/opt/pyenv" ]; then
export PYTHONPATH
latest_version=$(pyenv versions \
export PYTHONPATH
latest_version=$(pyenv versions \
- | sed s,*,,g \
- | awk '/[0-9]+/{ print $1 }' \
- | sort --version-sort \
- | awk '/./{line=$0} END{print line}')
+
| sed s,*,,g \
+
| awk '/[0-9]+/{ print $1 }' \
+
| sort --version-sort \
+
| awk '/./{line=$0} END{print line}')
pyenv local "$latest_version"
export PYENV_VERSION="3.6.4"
fi
pyenv local "$latest_version"
export PYENV_VERSION="3.6.4"
fi
-$pip install niet
-$pip install lftools
-$pip install lftools[nexus]
-$pip install jsonschema
+$pip install
--user
niet
+$pip install
--user
lftools
+$pip install
--user
lftools[nexus]
+$pip install
--user
jsonschema
echo "Checking votes:"
echo "Checking votes:"
-lftools infofile check-votes INFO.yaml "$GERRIT_URL" "$ref" > gerrit_comment.txt
+lftools infofile check-votes INFO.yaml "$GERRIT_URL" \
+ "$ref" > gerrit_comment.txt
exit_status="$?"
if [[ "$exit_status" -ne 0 ]]; then
exit_status="$?"
if [[ "$exit_status" -ne 0 ]]; then
@@
-51,7
+52,9
@@
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 "$GERRIT_PATCHSET_REVISION" --verified 1
+ ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review \
+ "$GERRIT_PATCHSET_REVISION" --verified 1
sleep 5
sleep 5
- ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review "$GERRIT_PATCHSET_REVISION" --submit
+ ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review \
+ "$GERRIT_PATCHSET_REVISION" --submit
fi
fi