From: Jamo Luhrsen Date: Wed, 3 May 2017 16:16:54 +0000 (-0700) Subject: Add users email to auto-generated gerrit patches X-Git-Tag: release/carbon~67^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=a749c9fa8ab5aa92f141a458137478b980c9ac69;p=releng%2Fbuilder.git Add users email to auto-generated gerrit patches - the --reviewers option is not there in the current version of git-review (1.24) but is there with v1.25 which will be installed with the pip install command in this patch - this would add me (jluhrsen@redhat.com) to all auto-gen gerrit patches, and I don't mind, but I need to get these reminders for the csit auto-gen gerrits at the least. Maybe there is a better way to do this? Change-Id: I3bb9caa0ce4e7dcd045010dbb344cc696da77d1e Signed-off-by: Jamo Luhrsen --- diff --git a/jjb/opendaylight-infra-push-gerrit-patch.sh b/jjb/opendaylight-infra-push-gerrit-patch.sh index 9d4988754..a7bd4afdf 100644 --- a/jjb/opendaylight-infra-push-gerrit-patch.sh +++ b/jjb/opendaylight-infra-push-gerrit-patch.sh @@ -19,4 +19,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 diff --git a/packer/provision/java-builder.sh b/packer/provision/java-builder.sh index 57bcc1227..ad0ef81e2 100644 --- a/packer/provision/java-builder.sh +++ b/packer/provision/java-builder.sh @@ -19,6 +19,9 @@ yum install -y python34-{devel,virtualenv,setuptools,pip} # Install python dependencies, useful generally yum install -y python-{devel,virtualenv,setuptools,pip} +# Use pip to install newer version of git-review +pip install git-review --upgrade + # Needed by autorelease scripts yum install -y xmlstarlet