X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcheck-info-votes.sh;h=72dec3b8f07157c57e78d17dcfc977d7d613d06c;hb=refs%2Fchanges%2F01%2F15201%2F3;hp=892dd8994e0fb398344b6cbe5257c109a24791f8;hpb=fabebb6e6d86dd37fa0fe47cff429ca0fc1b3ef6;p=releng%2Fglobal-jjb.git diff --git a/shell/check-info-votes.sh b/shell/check-info-votes.sh index 892dd899..72dec3b8 100644 --- a/shell/check-info-votes.sh +++ b/shell/check-info-votes.sh @@ -9,7 +9,7 @@ # http://www.eclipse.org/legal/epl-v10.html ############################################################################## echo "---> check-info-votes.sh" -set -xe -o pipefail +set -u unset ref=$(echo "$GERRIT_REFSPEC" | awk -F"/" '{ print $4 }') pip="pip3" @@ -45,5 +45,5 @@ if [[ "$exit_status" -ne 0 ]]; then exit "$exit_status" else echo "Vote completed submitting review" - ssh -p "$GERRIT_PORT" "$JENKINS_SSH_CREDENTIAL"@"$GERRIT_HOST" gerrit review "$change" --submit + ssh -p "$GERRIT_PORT" "$USER"@"$GERRIT_HOST" gerrit review "$change" --submit fi