Merge "Add YANG module check in distribution merge job"
[releng/builder.git] / jjb / autorelease / generate-release-notes.sh
index 08773f77fdb075e3fe2b22fc79c686b8c7878aed..c741d75aafaf4ea72fd7377a9f1433c1dff90aba 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash -x
+#!/bin/bash -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2017 The Linux Foundation and others.
 # This script generates Service Release notes and appends them to the release
 # notes in the docs project and submits a patch.
 
+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."