]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
support maven3 which changed output...
authorHolger Levsen <holger@layer-acht.org>
Wed, 25 Sep 2013 16:22:42 +0000 (18:22 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 25 Sep 2013 16:22:42 +0000 (18:22 +0200)
maven_post_build_debian_wrapper.sh

index c367638f5b2107d60db052d17713e28b21a6b7e5..b46067c0576f0f207267e613ee114bb42bbde7c4 100755 (executable)
@@ -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