gerrit_verify_triggers:
- comment-added-contains-event:
comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(vote)$'
- - comment-added:
+ - comment-added-event:
approval-category: 'CRVW'
- approval-value: '+2'
+ approval-value: 2
- comment-added:
approval-category: 'Code-Review'
- approval-value: '+2'
+ approval-value: 2
#####################
# Job Configuration #
features:
- |
New ``info-vote-verify`` macro
- Will count votes against an INFO.yaml change and sumbit
- automatically if a majority of committers and tsc mebers
- vote +1 or +2 on the change.
+ Will count votes against an INFO.yaml change and sumbit automatically
+ if a majority of committers vote +1 or +2 on the change.
+ Job is triggered by +2 votes or a comment of "vote"
# 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"
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