jenkinsci / jenkinsci/agent-setup-plugin
[JENKINS-16816] slave-agent.jnlp produces wrong url for remoting.jar
- Dominant language
- Java
- Stars
- 11
- Forks
- 23
- Avg merge
- 21h 13m
- Merged PRs (30d)
- 1
Description
While trying to set up the Windows machine as a node, the slave-agent.jnlp yields an unable to locate resource error for remoting.jar. The issue seems to be that the url it's trying to look for also contains the root directory it is saved in.
For example, if I'm trying to run the slave-agent.jnlp in C:\jenkins, the FileNotFoundException seems to indicate that it is looking for the file at C:\jenkins\\computer\\jnlpJars\remoting.jar, instead of simply \computer\\jnlpJars\remoting.jar.
Even if I try to run it directly at the url using javaws (javaws http:///computer//slave-agent.jnlp), it appends the url of the to the slave-agent.jnlp before the url of the rest of the files and you get a convoluted mess of an url like http:///computer///computer//jnlpJars/remoting.jar
---
Originally reported by zedzeta, imported from: slave-agent.jnlp produces wrong url for remoting.jar
kohsuke
Raw content of original issue
While trying to set up the Windows machine as a node, the slave-agent.jnlp yields an unable to locate resource error for remoting.jar. The issue seems to be that the url it's trying to look for also contains the root directory it is saved in.
For example, if I'm trying to run the slave-agent.jnlp in C:\jenkins, the FileNotFoundException seems to indicate that it is looking for the file at C:\jenkins\<jenkinsURL:8080>\computer\<slave>\jnlpJars\remoting.jar, instead of simply <jenkinsURL:8080>\computer\<slave>\jnlpJars\remoting.jar.
Even if I try to run it directly at the url using javaws (javaws http://<jenkinsURL:8080>/computer/<slave>/slave-agent.jnlp), it appends the url of the to the slave-agent.jnlp before the url of the rest of the files and you get a convoluted mess of an url like http://<jenkinsURL:8080>/computer/<slave>/<jenkinsURL:8080>/computer/<slave>/jnlpJars/remoting.jar
- environment:
CentOS 6 x64 Master (running through VMWare) running Jenkins 1.501; Windows 7 x64 for Slave
Contributor guide
Assessment
This issue has not been assessed yet.