Merge "Migrate autorelease jobs to lf-infra-publish"
[releng/builder.git] / jjb / opendaylight-infra-push-gerrit-patch.sh
index 9d49887547e572786b2a1630f122963cde9303ab..9e0266ea96977eb38d1dee1d2fef3c9ad1dac91c 100644 (file)
@@ -1,4 +1,9 @@
 #!/bin/bash
+
+# upgrade git-review to a version that will have the --reviewers option. existing minion
+# image has a version that does not have it.
+sudo pip install git-review --upgrade
+
 # shellcheck disable=SC1083
 CHANGE_ID=$(ssh -p 29418 "jenkins-$SILO@git.opendaylight.org" gerrit query \
                limit:1 owner:self is:open project:{project} \
@@ -19,4 +24,4 @@ git remote add gerrit "ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/bui
 # Don't fail the build if this command fails because it's possible that there
 # is no changes since last update.
 # shellcheck disable=SC1083
-git review --yes -t {gerrit-topic} || true
+git review --yes -t {gerrit-topic} --reviewers jluhrsen@redhat.com || true