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

On 12:56AM, Sun, 5/04/2015 ELIASSAL <sa...@altern.org> 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 jenkinsci-users+unsubscr...@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
> <https://groups.google.com/d/msgid/jenkinsci-users/8352a9db-c120-4ffd-a06e-081fac90e421%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui945NTSxws__c6%3DF0qtnnDEJFizBpbRuUjVdFLOa0hO_ZfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to