From 6f225d734ba2c7f65fed167efd1e5d4ea35bcd60 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 26 Jul 2013 18:03:02 +0200 Subject: [PATCH] explicitly checkout that branch --- maven_pre_build_debian_wrapper.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maven_pre_build_debian_wrapper.sh b/maven_pre_build_debian_wrapper.sh index 38c4106..86d9ed2 100755 --- a/maven_pre_build_debian_wrapper.sh +++ b/maven_pre_build_debian_wrapper.sh @@ -24,6 +24,7 @@ fi echo "About to build branch:" figlet "$GIT_BRANCH_NAME" +git checkout $$GIT_BRANCH_NAME if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] || [ ${GIT_BRANCH_NAME:0:7} = "bugfix/" ] ; then if [[ "$BUILD_TRIGGERS" == *"merge"* ]]; then @@ -48,3 +49,5 @@ elif [ "$GIT_BRANCH_NAME" = "master" ] || [ "${GIT_BRANCH_NAME:0:7}" = "hotfix/" git tag $TAG -m "Testing whether there is already a tag $TAG..." git tag -d $TAG fi + + -- 2.39.5