From: Holger Levsen Date: Wed, 25 Sep 2013 16:22:42 +0000 (+0200) Subject: support maven3 which changed output... X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=82feb82eabfdc32cfca925c7d2e5e7070ecfe784;p=profitbricks%2Fjenkins-build-scripts.git support maven3 which changed output... --- diff --git a/maven_post_build_debian_wrapper.sh b/maven_post_build_debian_wrapper.sh index c367638..b46067c 100755 --- a/maven_post_build_debian_wrapper.sh +++ b/maven_post_build_debian_wrapper.sh @@ -20,7 +20,7 @@ function cleanup { function validateSettings { REPO=pb-${SUITE} - VERSION=$(mvn -B -N help:evaluate -Dexpression=project.version 2>/dev/null| grep -v "^\[") + VERSION=$(mvn -B -N help:evaluate -Dexpression=project.version 2>/dev/null| grep -v "^\[" | grep -v "^D" ) if [[ -z "${VERSION}" ]]; then echo "ERROR: Cannot get version from maven using 'mvn -B -N help:evaluate -Dexpression=project.version'" mvn -B -N help:evaluate -Dexpression=project.version