2 # shellcheck disable=SC1083
3 CHANGE_ID=$(ssh -p 29418 "jenkins-$SILO@git.opendaylight.org" gerrit query \
4 limit:1 owner:self is:open project:{project} \
5 message:'{gerrit-commit-message}' \
6 topic:{gerrit-topic} | \
10 if [ -z "$CHANGE_ID" ]; then
11 git commit -sm "{gerrit-commit-message}"
13 git commit -sm "{gerrit-commit-message}" -m "Change-Id: $CHANGE_ID"
17 git remote add gerrit "ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/builder.git"
19 # Don't fail the build if this command fails because it's possible that there
20 # is no changes since last update.
21 # shellcheck disable=SC1083
22 git review --yes -t {gerrit-topic} || true