]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
explicitly checkout that branch
authorHolger Levsen <holger@layer-acht.org>
Fri, 26 Jul 2013 16:03:02 +0000 (18:03 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 26 Jul 2013 16:03:02 +0000 (18:03 +0200)
maven_pre_build_debian_wrapper.sh

index 38c410627fbc1704e5a6991dc2a38346013d8c4b..86d9ed2cdf2eb3a0d9668d617b7150738b8d78b3 100755 (executable)
@@ -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
+
+