From: Holger Levsen Date: Wed, 28 Aug 2013 12:02:05 +0000 (+0200) Subject: fix build failure after merge to integration branch X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=7731b14fffc86bcf4f2cd053a0027eff02ab9614;p=profitbricks%2Fjenkins-build-scripts.git fix build failure after merge to integration branch --- diff --git a/maven_post_build_debian_wrapper.sh b/maven_post_build_debian_wrapper.sh index 39364ad..c367638 100755 --- a/maven_post_build_debian_wrapper.sh +++ b/maven_post_build_debian_wrapper.sh @@ -137,6 +137,8 @@ if [[ ${GIT_BRANCH_NAME:0:8} = "feature/" ]] || [[ ${GIT_BRANCH_NAME:0:7} = "bug if [[ "$BUILD_TRIGGERS" = *"merge"* ]]; then git push origin integration figlet "Pushed to integration." + # restore branch we were building from: + git branch -D $GIT_BRANCH_NAME git checkout origin/$GIT_BRANCH_NAME -b $GIT_BRANCH_NAME fi fi