Re: Pipeline Maven: Running on Windows slave

2017-10-04 Thread Sverre Moe
Here follows an update of some observations and configurations I have done to get building on Windows to work. The Windows node is connected in Jenkins with SSH started by sshd in Cygwin. Using this guide: https://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-usi

Re: Pipeline Maven: Running on Windows slave

2017-09-12 Thread Cyrille Le Clerc
Hello Svere, It seems that we have some work to make withMaven(){} more friendly to Windows+Cygwin users. We have already tracked: - JENKINS-44089 Request that withMaven pipeline step produce both mvn and mvn.cmd wrappers on Windows

Re: Pipeline Maven: Running on Windows slave

2017-09-11 Thread Baptiste Mathus
Hello, I know the developers of that plugin would like to make it as good as possible. To that, if so, could you please try and summarize what you think could be made easier/better? And even if possibly a config error, if you think the error could help more quickly understand what is wrong? Thanks

Re: Pipeline Maven: Running on Windows slave

2017-09-11 Thread Sverre Moe
The fix was to set the Windows slave Remote Root Directory to Windows URI C:\cygwin64\home\username mandag 11. september 2017 08.35.29 UTC+2 skrev Sverre Moe følgende: > > Well, adding a new JDK in Jenkins Tools pointing to the Windows path of > Java worked > Then withMaven(jdk: "jdk1.8-win") > >

Re: Pipeline Maven: Running on Windows slave

2017-09-10 Thread Sverre Moe
Well, adding a new JDK in Jenkins Tools pointing to the Windows path of Java worked Then withMaven(jdk: "jdk1.8-win") I have though hit another snag. Lots of ERROR after build success. ERROR: [withMaven] WARNING: Exception archiving and fingerprinting MavenArtifact{no.spacetec:myApp:jar:1.0.0-SN

Re: Pipeline Maven: Running on Windows slave

2017-09-10 Thread Sverre Moe
I took a look at the Maven Pipeline documentation again. For Windows it says to use bat, not sh. I tried that, and got a little bit closer, but now it cannot find JAVA_HOME - withMaven Wrapper script - Error: JAVA_HOME is set to an invalid directory. JAVA_HOME = "/usr/java/jdk1.8.0_102"

Pipeline Maven: Running on Windows slave

2017-09-10 Thread Sverre Moe
I have connected a Windows slave to Jenkins with SSH+Cygwin. So running shell scripts like "sh 'mvn'" should work as I do it locally on the Windows. Running withMaven fails, and I cannot figure our why. [Pipeline] node Running on master-windows-x86_64 in /home/username/workspace/myApp_username_