Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16816

slave-agent.jnlp produces wrong url for remoting.jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • slave-setup-plugin
    • CentOS 6 x64 Master (running through VMWare) running Jenkins 1.501; Windows 7 x64 for Slave

      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

            kohsuke Kohsuke Kawaguchi
            zedzeta Z Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: