From 4f636cbb6f4abcd0941764162605a828a2ae89c6 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Fri, 26 Feb 2016 09:35:10 +0100 Subject: Add clean phase to build process --- publish.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/publish.sh b/publish.sh index 48ee53ba..e9f86d1e 100755 --- a/publish.sh +++ b/publish.sh @@ -48,6 +48,15 @@ echo -e "Publishing to: $TYELLOW$PUBLISH_DIR$TNORMAL" mkdir -p "$PUBLISH_DIR" mkdir -p "$LOG_DIR" +begin_phase "Cleaning..." +mvn clean > "$LOG_DIR/clean.log" 2>&1 +RETVAL=$? +if [ $RETVAL -eq 0 ]; then + end_phase "OK" +else + end_phase "FAILED" +fi + profiles=( linux windows mac ) names=( linux windows mac ) if [[ "$1" != "" ]] && [[ "$1" == "--profiles" ]]; then -- cgit v1.2.3