Well Richard, when I have setup maven; O followed instructions and placed 
it in C:\Program Files...........But any programming language should be 
able to handle this
On Saturday, April 4, 2015 at 1:56:32 PM UTC+2, ELIASSAL wrote:
>
> 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/6ed53a81-57a2-4b13-8bf1-cccad80c5695%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to