Skip to content

Commit

Permalink
build: Fixed a problem in the build not having set the git user email…
Browse files Browse the repository at this point in the history
… and name in docker.
  • Loading branch information
chrisdutz committed Feb 16, 2024
1 parent 69f0886 commit ec728f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/release-1-create-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec728f9

Please sign in to comment.