X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Fbranch-cut.sh;h=0c24b27c94f342d62a78328fb4dd521c2336952d;hb=88acf985a358325f372ad6b4ca23d0662ac157c9;hp=6d74e78cf3b683e29244b9769e9cecae9d5fa7b7;hpb=0c768872e5b0a44b7b43cf85090816ba4cbcbd21;p=releng%2Fbuilder.git diff --git a/jjb/autorelease/branch-cut.sh b/jjb/autorelease/branch-cut.sh index 6d74e78cf..0c24b27c9 100644 --- a/jjb/autorelease/branch-cut.sh +++ b/jjb/autorelease/branch-cut.sh @@ -28,13 +28,20 @@ LOG_FILE="$WORKSPACE/archives/branch-cut.log" set -eu -o pipefail +# shellcheck disable=SC1090 +source ~/lf-env.sh + +lf-activate-venv "git-review==1.28" + # Validate inputs if [ -z "$RELEASE" ]; then echo "ERROR: RELEASE variable must be set to a release name. Eg Carbon" exit 1 fi -git config gitreview.username jenkins-releng +# Setup Gerrit remote to ensure Change-Id gets set on commit. +git config --global --add gitreview.username "jenkins-$SILO" +git remote -v git submodule foreach git review -s git review -s @@ -63,7 +70,7 @@ if [ "$DRY_RUN" = false ] then echo "Pushing stable/${RELEASE,,} branches to Gerrit" git submodule foreach git push gerrit "stable/${RELEASE,,}" - git push gerrit "stable/$RELEASE" + git push gerrit "stable/${RELEASE,,}" fi # --- End create new maintenance branch