X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Fbranch-cut.sh;h=29e065ea3c3f76a86781d92e920e0609f531155b;hb=7f789eff212a3be0f0a7ab49dde5601c8ce697a9;hp=02df34e2214174dad41b8811c561c7a0fed7acfc;hpb=bb0c0d708a9f6175e0f97f4db0a24922b8e66fe6;p=releng%2Fbuilder.git diff --git a/jjb/autorelease/branch-cut.sh b/jjb/autorelease/branch-cut.sh index 02df34e22..29e065ea3 100644 --- a/jjb/autorelease/branch-cut.sh +++ b/jjb/autorelease/branch-cut.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # @License EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -30,10 +30,16 @@ set -eu -o pipefail # Validate inputs if [ -z "$RELEASE" ]; then - echo "ERROR: RELEASE variable most be set to a release name. Eg Carbon" + echo "ERROR: RELEASE variable must be set to a release name. Eg Carbon" exit 1 fi +# 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 + # --- Start create new maintenance branch echo "---> Creating new mainenance branch" git submodule foreach git fetch origin @@ -59,7 +65,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