X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopendaylight-infra-push-gerrit-patch.sh;h=0d1a67055ae7f97722ea7ed55cfc986b80e5fc0e;hb=c792dd0bbcd7293ac7097d12a5170e7f69369a68;hp=9d49887547e572786b2a1630f122963cde9303ab;hpb=856d4427480629e823bf8dae7a360a58bcd9df3e;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-push-gerrit-patch.sh b/jjb/opendaylight-infra-push-gerrit-patch.sh index 9d4988754..0d1a67055 100644 --- a/jjb/opendaylight-infra-push-gerrit-patch.sh +++ b/jjb/opendaylight-infra-push-gerrit-patch.sh @@ -1,4 +1,25 @@ #!/bin/bash +# SPDX-License-Identifier: EPL-1.0 +############################################################################## +# Copyright (c) 2017 The Linux Foundation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################## + +# Install git-review using virtualenv to the latest version that supports +# --reviewers option, available through pip install. Existing minion image has a +# version that does not have it. +virtualenv "/tmp/v/git-review" +# shellcheck source=/tmp/v/git-review/bin/activate disable=SC1091 +source "/tmp/v/git-review/bin/activate" +pip install --upgrade pip +pip install --upgrade git-review +pip install --upgrade pipdeptree +pipdeptree + # 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 +40,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