]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
- Fixed typos
authorPascal Giannakakis <pascal.giannakakis@profitbricks.com>
Fri, 21 Mar 2014 16:00:29 +0000 (17:00 +0100)
committerPascal Giannakakis <pascal.giannakakis@profitbricks.com>
Fri, 21 Mar 2014 16:00:29 +0000 (17:00 +0100)
Task #PBP-6319 - Fix Jenkins pre- and post-commit triggers

maven_pre_build_debian_wrapper.sh

index 4ef8e4a976ec8bde3bdbe924ef837c2bb8c143c4..136752c8eb9d0baa82933c1241eda393b2b81257 100755 (executable)
@@ -17,6 +17,7 @@ cd $WORKSPACE
 [[ -d .repository ]] && rm .repository -rf && echo "$WORKSPACE/.repository (used by Maven) removed"
 # clean up git
 git reset --hard
+git clean -xf
 # respect build-triggers (triggered from a git commit message containing the string [no-test])
 if [[ "$BUILD_TRIGGERS" == *"no-test"* ]]; then
     export NO_TEST="true"
@@ -30,6 +31,7 @@ figlet "$GIT_BRANCH_NAME"
 git checkout $GIT_BRANCH_NAME
 echo "Resetting $GIT_BRANCH_NAME branch to remote state..."
 git reset --hard refs/remotes/origin/$GIT_BRANCH_NAME
+git clean -xf
 echo
 git status
 
@@ -43,6 +45,7 @@ if [[ ${GIT_BRANCH_NAME:0:8} = "feature/" ]] || [[ ${GIT_BRANCH_NAME:0:7} = "bug
         git checkout integration
         echo "Resetting integration branch to remote state..."
         git reset --hard refs/remotes/origin/integration
+        git clean -xf
         figlet "integration merge"
         git merge --no-ff origin/$GIT_BRANCH_NAME
     fi