Re: Workflow plugin and Backslashes - script not recognizing path to maven on windows

2015-04-11 Thread ELIASSAL
Thanks Sir, it worked like a charm now. By the way, any idea fi I can find any documentation oe explanation about the "unarchive" step. I am not able to understand what the switch MAPPING can do as follows unarchive mapping: ['src.tar': '.', 'target/petclinic.war': 'petclinic.war'] In one tu

Re: Workflow plugin and Backslashes - script not recognizing path to maven on windows

2015-04-06 Thread Peter Vohmann
Hi, The language is perfectly capable to deal with spaces and backslashes, but the bat statement, or rather cmd.exe behind it, splits the statement at white spaces. To avoid the splitting, enclose the command in double quotes, inside of the string. Please try to write the bat statement it like

Re: Workflow plugin and Backslashes - script not recognizing path to maven on windows

2015-04-06 Thread ELIASSAL
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/je

Re: Workflow plugin and Backslashes - script not recognizing path to maven on windows

2015-04-04 Thread Richard Bywater
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 wrote: > Hi, I am following t

Workflow plugin and Backslashes - script not recognizing path to maven on windows

2015-04-04 Thread ELIASSAL
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 fail