I have some bash script which contains this command:
$MAVEN -f "${PROJECTROOT}/pom.xml" org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare -Darguments="-DskipTests"
The problem is that the tests aren't skipped.
I'v checked this issue which provided the right command to skip the tests. The command works when I try the same command locally on my machine using mvn
and using no enviroment variabeles.
Now I'm using this as managed script in Jenkins where it seems to fail every time. The tests aren't skipped. What am I doing wrong?
The mvn version on our Jenkins is 3.2.5