node {
git url: 'https://github.com/jglick/simple-maven-project-with-tests.git'
def mvnHome = tool 'maven-3.2.5'
bat "${mvnHome}\\bin\\mvn -B verify"
}'C:\Program' is not recognized as an internal or external command,
bat "C:\\M3\\bin\\mvn -B verify"
The problem isn't really the backslashes as such but the space in the Maven home variable - personally I always avoid using directories with spaces so not sure how to work around the space issue other than not have one :)
Richard
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8352a9db-c120-4ffd-a06e-081fac90e421%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
node {
git url: 'https://github.com/jglick/simple-maven-project-with-tests.git'
def mvnHome = tool 'maven-3.2.5'
bat "\"${mvnHome}\\bin\\mvn\" -B verify"
}