fi
export
+echo "Fetching from remote..."
+git fetch origin --prune
echo "About to build branch:"
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
+echo
git status
if [[ ${GIT_BRANCH_NAME:0:8} = "feature/" ]] || [[ ${GIT_BRANCH_NAME:0:7} = "bugfix/" ]]; then
#
echo "Switching to integration branch..."
git checkout integration
- echo "Fetching from remote..."
- git fetch origin --prune
echo "Resetting integration branch to remote state..."
git reset --hard refs/remotes/origin/integration
figlet "integration merge"
TAG=$(echo $VERSION | tr '~' '_' | tr ':' ',')
git tag $TAG -m "Testing whether there is already a tag $TAG..."
git tag -d $TAG
-elif [[ "$GIT_BRANCH_NAME" = "integration" ]] ; then
- echo "Fetching from remote..."
- git fetch origin --prune
- echo "Resetting integration branch to remote state..."
- git reset --hard refs/remotes/origin/integration
fi