From: Holger Levsen Date: Fri, 26 Jul 2013 16:03:02 +0000 (+0200) Subject: explicitly checkout that branch X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=6f225d734ba2c7f65fed167efd1e5d4ea35bcd60;p=profitbricks%2Fjenkins-build-scripts.git explicitly checkout that branch --- 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 + +