You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/02/16 07:16:41 UTC

(plc4x) branch develop updated: build: Fixed a problem in the build not having set the git user email and name in docker.

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new ec728f98e4 build: Fixed a problem in the build not having set the git user email and name in docker.
ec728f98e4 is described below

commit ec728f98e42910fce469e3aae1bc27906910c0e1
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Fri Feb 16 08:16:34 2024 +0100

    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 4b0b3cee9c..12bdf2f3b0 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