Merge "Remove 6wind/quagga build temporarily"
[releng/builder.git] / jjb / opendaylight-infra-push-gerrit-patch.sh
index a7bd4afdfd039bebfc343ae7d7f28e40eb4df2c8..420541dfca52a7c61d8eaa17a80ecb3313c0b32a 100644 (file)
@@ -1,4 +1,16 @@
 #!/bin/bash
+
+# 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
+
 # shellcheck disable=SC1083
 CHANGE_ID=$(ssh -p 29418 "jenkins-$SILO@git.opendaylight.org" gerrit query \
                limit:1 owner:self is:open project:{project} \