X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fopendaylight-infra-push-gerrit-patch.sh;h=0d1a67055ae7f97722ea7ed55cfc986b80e5fc0e;hb=aed631e0a5e2b00228e0da17175b8a835f0e2ccb;hp=9e0266ea96977eb38d1dee1d2fef3c9ad1dac91c;hpb=3f26f0d97606964d92ae8ef8b05c911a40f58e19;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-push-gerrit-patch.sh b/jjb/opendaylight-infra-push-gerrit-patch.sh index 9e0266ea9..0d1a67055 100644 --- a/jjb/opendaylight-infra-push-gerrit-patch.sh +++ b/jjb/opendaylight-infra-push-gerrit-patch.sh @@ -1,8 +1,24 @@ #!/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 +############################################################################## -# 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 +# 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 \