]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add support for bugfix branches
authorHolger Levsen <holger@layer-acht.org>
Fri, 26 Jul 2013 13:54:10 +0000 (15:54 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 26 Jul 2013 13:54:10 +0000 (15:54 +0200)
maven_post_build_debian_wrapper.sh
maven_pre_build_debian_wrapper.sh

index c85b0c474cabe8606084c42afc38bd48dea4400d..abe185b722ddb48b5668d0227ba9c140939abaf7 100755 (executable)
@@ -28,7 +28,7 @@ function validateSettings
         exit 1
     fi
 
-    if [ "$GIT_BRANCH_NAME" = "integration" ] || [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] || [ ${GIT_BRANCH_NAME:0:3} = "poc/" ]; then
+    if [ "$GIT_BRANCH_NAME" = "integration" ] || [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] || [ ${GIT_BRANCH_NAME:0:3} = "poc/" ] || [ ${GIT_BRANCH_NAME:0:7} = "bugfix/" ]; then
        APPEND_TO_VERSION="experimental"
        REPO="dev-${SUITE}"
        if [ "$GIT_BRANCH_NAME" = "integration" ] ; then
@@ -131,7 +131,7 @@ dpkg-parsechangelog
 cleanup
 
 # push back integration branch if we merged a feature branch
-if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] ; then
+if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] || [ ${GIT_BRANCH_NAME:0:7} = "bugfix/" ]; then
         if [[ "$BUILD_TRIGGERS" == *"merge"* ]]; then
                git push origin integration
                git checkout origin/$GIT_BRANCH_NAME -b $GIT_BRANCH_NAME
index 4ba334b4226374c3c8f2fd9e44c61f91901ac9a7..7eb6426a78965b9142976caaedc0c1be6c661c64 100755 (executable)
@@ -18,11 +18,11 @@ cd $WORKSPACE
 # clean up git
 git reset --hard
 
-if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] ; then
+if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] || [ ${GIT_BRANCH_NAME:0:7} = "bugfix/" ] ; then
        if [[ "$BUILD_TRIGGERS" == *"merge"* ]]; then
                #
                # if triggered  to 'merge' via git commit,
-               # merge feature branch into integration branch
+               # merge feature/bugfix branch into integration branch
                #
                echo "Switching to integration branch..."
                git checkout integration