Merge "Remove yangtools-4.0.x jobs"
[releng/builder.git] / jjb / autorelease / version-bump.sh
index 12e1b849b3c50c378e53802cad12b3e9ea9d91b2..f54e0a3e85a6c5f853b9edb6013a35e6c4ec223f 100644 (file)
@@ -26,7 +26,10 @@ BRANCH="$GERRIT_BRANCH"
 # Ensure we fail the job if any steps fail.
 set -eu -o pipefail
 
-pip install --user --quiet --upgrade git-review
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+lf-activate-venv "git-review==1.28"
 
 # Fail if branch cutting is not on master
 if [ "$BRANCH_CUT" = "true" ] && [ "$BRANCH" != "master" ]; then
@@ -59,6 +62,8 @@ if [ "$BRANCH_CUT" = "false" ]; then
     commit_msg="Bump versions by x.y.(z+1)"
 else
     commit_msg="Bump versions by x.(y+1).z"
+    # If we are branch cutting we also need to bump the docs/conf.yaml version
+    find . -type f -name conf.yaml -exec sed -i "s/version:.*/version: ${STREAM^}/" {} \;
 fi
 lftools version bump "$RELEASE_TAG"