X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopendaylight-infra-push-gerrit-patch.sh;h=f64da9cbcab18dac4980abb2a7dfd424d27392d7;hb=07568191388cf45a9525d473a9d59df7c177e78e;hp=420541dfca52a7c61d8eaa17a80ecb3313c0b32a;hpb=f72a4760c935b2f06bf856399f9ad911271ec50f;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-push-gerrit-patch.sh b/jjb/opendaylight-infra-push-gerrit-patch.sh index 420541dfc..f64da9cbc 100644 --- a/jjb/opendaylight-infra-push-gerrit-patch.sh +++ b/jjb/opendaylight-infra-push-gerrit-patch.sh @@ -1,15 +1,23 @@ #!/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 "$WORKSPACE/.virtualenvs/git-review" -# shellcheck source=./.virtualenvs/tox/bin/activate disable=SC1091 -source "$WORKSPACE/.virtualenvs/git-review/bin/activate" -PYTHON="$WORKSPACE/.virtualenvs/git-review/bin/python" -$PYTHON -m pip install --upgrade pip -$PYTHON -m pip install --upgrade git-review -$PYTHON -m pip freeze +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<10.0.0" setuptools +pip install --upgrade git-review +pip freeze # shellcheck disable=SC1083 CHANGE_ID=$(ssh -p 29418 "jenkins-$SILO@git.opendaylight.org" gerrit query \