WARNING, the following message contain strong opinion, if that do not suit you, 
stop reading now.

Don’t worry, I hate all Java equally... they fail the only promise they ever 
had, run everywhere… I hope this language rot in hell.

From: jenkinsci-users@googlegroups.com <jenkinsci-users@googlegroups.com> On 
Behalf Of Mark Waite
Sent: August 26, 2020 4:52 PM
To: Jenkins Users <jenkinsci-users@googlegroups.com>
Subject: Re: Windows slave by ssh

I've preferred to install AdoptOpenJDK in a location that does not include 
spaces.  Oracle JDK licensing is more restrictive than I'm willing to accept 
and I want the latest Java 8 fixes.

On Wed, Aug 26, 2020 at 2:23 PM Slide 
<slide.o....@gmail.com<mailto:slide.o....@gmail.com>> wrote:
It looks like this code would need to be updated to handle when there are 
spaces:  
https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java#L91.
 I have the reverse, a Windows controller and Linux agents. I specify the 
JAVA_HOME environment variable in my agent configuration and that works. Can 
you try that?



On Wed, Aug 26, 2020 at 12:38 PM Jérôme Godbout 
<godbo...@amotus.ca<mailto:godbo...@amotus.ca>> wrote:
Hi,
I’m trying to access a Windows slave with SSH using Linux master Jenkins 
2.235.5.

[08/26/20 15:24:48] [SSH] Checking java version of c:\JenkinsSlave/jdk/bin/java

Couldn't figure out the Java version of c:\JenkinsSlave/jdk/bin/java

The system cannot find the path specified.



[08/26/20 15:24:49] [SSH] Checking java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

Couldn't figure out the Java version of C:\Program 
Files\Java\jdk1.8.0_161/bin/java

'C:\Program' is not recognized as an internal or external command,

operable program or batch file.
…

But when I try it from my other Windows Jenkins master 2.251 (my development 
server for testing purpose) it does connect without issue and find the proper 
java into the same path.

[08/21/20 13:48:50] [SSH] Starting agent process: cd "c:\JenkinsSlave" && 
"C:\Program Files\Java\jdk1.8.0_161\bin\java.exe"  -jar remoting.jar -workDir 
c:\JenkinsSlave -jar-cache c:\JenkinsSlave/remoting/jarCache
Aug 21, 2020 1:48:50 PM org.jenkinsci.remoting.engine.WorkDirManager 
initializeWorkDir

Seem like the c:\Program Files\Java… is not escaped properly under Linux 
master. How to fix that? How can I fix this?
Should I escape the env var JAVA_HOME and add quote into it? will it break 
something else?

I’m trying to move the slave execution from my development Windows laptop to 
our official Linux master.

Thanks,
Jerome
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jenkinsci-users/YTOPR0101MB2315834EB1C8497CD210EEA4CD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.


--
Website: http://earl-of-code.com
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfLE6ybdjjMgzrpVt9UNCB0MF6CBTndkZWgXApOMnv5xQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGh_FntpKrRaEDCCtD-Xx59g8gKGvhQdmGV0tH4_MmvYw%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGh_FntpKrRaEDCCtD-Xx59g8gKGvhQdmGV0tH4_MmvYw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
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/YTOPR0101MB2315064C40D28859D8BFB0DECD540%40YTOPR0101MB2315.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to