# remove -SNAPSHOT
VERSION=$(echo $VERSION | sed -s "s#-SNAPSHOT##g")
BUILD_START=$(date +%Y%m%d%H%M%S)
- VERSION="${VERSION}~${APPEND_TO_VERSION}${BUILD_START}+{BUILD_NUMBER}+g${GIT_COMMIT:0:7}"
+ VERSION="${VERSION}~${APPEND_TO_VERSION}${BUILD_START}+${BUILD_NUMBER}+g${GIT_COMMIT:0:7}"
echo "=================================="
echo $VERSION
echo "=================================="
fi
fi
-
#TODO: remove this debug output
export
#!/bin/bash
+#TODO: remove this debug output
+export
+
set -e
+cd $WORKSPACE
+# remove old maven repository if exists
+[ -d .repository ] && rm .repository -rf
+# clean up git
git reset --hard
if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] ; then