mvn on buildslaves that don't have it in path and then call it

This commit is contained in:
Daan Hoogland 2015-02-19 13:07:03 +01:00
parent 45a3ad2186
commit ee82033da1

View File

@ -56,7 +56,7 @@ function packaging() {
exit 2
fi
fi
VERSION=`(cd ../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep --color=none '^[0-9]\.'`
VERSION=`(cd ../; $MVN org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep --color=none '^[0-9]\.'`
if echo $VERSION | grep -q SNAPSHOT ; then
REALVER=`echo $VERSION | cut -d '-' -f 1`
DEFVER="-D_ver $REALVER"