Hi, I am following the basic tutorial
https://github.com/jenkinsci/workflow-plugin/blob/master/TUTORIAL.md, the
piecs of script
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"
}
is failing at line bat "${mvnHome}\\bin\\mvn -B verify" with the
following error
> 'C:\Program' is not recognized as an internal or external command,
I replaced this with
> bat "C:\\M3\\bin\\mvn -B verify"
and it worked fine. So what is the solution to use variables that can have
Backslashes
Thanks
--
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 [email protected].
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.