From ec728f98e42910fce469e3aae1bc27906910c0e1 Mon Sep 17 00:00:00 2001 From: Christofer Dutz Date: Fri, 16 Feb 2024 08:16:34 +0100 Subject: [PATCH] build: Fixed a problem in the build not having set the git user email and name in docker. --- tools/release-1-create-branch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/release-1-create-branch.sh b/tools/release-1-create-branch.sh index 4b0b3cee9c4..12bdf2f3b08 100755 --- a/tools/release-1-create-branch.sh +++ b/tools/release-1-create-branch.sh @@ -48,8 +48,11 @@ case $yn in exit 1;; esac +read -p "What is your apache user-id? " userId +read -p "What is your real name? " realName + # 3. Do a simple maven branch command with pushChanges=false (inside the Docker container) -docker compose run --rm releaser bash /ws/mvnw -e -P with-c,with-dotnet,with-go,with-java,with-python,with-sandbox -Dmaven.repo.local=/ws/out/.repository release:branch -DautoVersionSubmodules=true -DpushChanges=false -DdevelopmentVersion="$NEW_VERSION" -DbranchName="$BRANCH_NAME" +docker compose run --rm releaser bash git config --global user.email "$userId@apache.org" && git config --global user.name "$realName" && /ws/mvnw -e -P with-c,with-dotnet,with-go,with-java,with-python,with-sandbox -Dmaven.repo.local=/ws/out/.repository release:branch -DautoVersionSubmodules=true -DpushChanges=false -DdevelopmentVersion="$NEW_VERSION" -DbranchName="$BRANCH_NAME" if [ $? -ne 0 ]; then echo "Got non-0 exit code from docker compose, aborting." exit 1