Setup gerrit.username properly with git-config 01/80101/2
authorAnil Belur <abelur@linuxfoundation.org>
Fri, 1 Feb 2019 22:18:02 +0000 (08:18 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 1 Feb 2019 22:30:45 +0000 (08:30 +1000)
Change-Id: Ifaf345bb46dfef9f54de8ec423b1eb74e5b521d5
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/autorelease/branch-cut.sh

index 6d74e78cf3b683e29244b9769e9cecae9d5fa7b7..90ab655bb02d38d6dd394579a89e82b6b2c5c1f6 100644 (file)
@@ -34,7 +34,9 @@ if [ -z "$RELEASE" ]; then
     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