git-review has been removed as a dependency from
lf-recommended-tools, therefore it needs to be installed
locally for the scripts to run successfully.
Change-Id: Ie1d334073f61e769c0b54ae5637888d36d744d1d
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
set -eu -o pipefail
+pip install --user --quiet --upgrade git-review
+
# Validate inputs
if [ -z "$RELEASE" ]; then
echo "ERROR: RELEASE variable must be set to a release name. Eg Carbon"
set -x
+pip install --user --quiet --upgrade git-review
+
RELEASE=${RELEASE:-$(echo "$GERRIT_EVENT_COMMENT_TEXT" | grep generate-release-notes | awk '{print $2}')}
if [ -z "$RELEASE" ]; then
echo "ERROR: The RELEASE variable is not set."
# Ensure we fail the job if any steps fail.
set -eu -o pipefail
+pip install --user --quiet --upgrade git-review
+
# Fail if branch cutting is not on master
if [ "$BRANCH_CUT" = "true" ] && [ "$BRANCH" != "master" ]; then
echo "ERROR: Cannot branch cut on $BRANCH, its required to be on the master branch."