The Setup:
• Windwos 10
• Docker
The Windows 10 that runs docker shoud be a slave for Jenkins, I created a “localhost” Node, when I Start I get the Error:
C:\Users\Schindler\Downloads>java -jar slave.jar -jnlpUrl http://localhost:32769/computer/localhost/slave-agent.jnlp
Failing to obtain http://localhost:32769/computer/localhost/slave-agent.jnlp
java.io.IOException: Failed to load http://localhost:32769/computer/localhost/slave-agent.jnlp: 503 Service Unavailable
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:400)
at hudson.remoting.Launcher.run(Launcher.java:248)
at hudson.remoting.Launcher.main(Launcher.java:218)
Waiting 10 seconds before retry
But I can reach http://localhost:32775/tcpSlaveAgentListener/ from Crome an Download the slave-agent.jnlp
When I start then this:
C:\Users\Schindler\Downloads>java -jar slave.jar -jnlpUrl file:///C:/Users/Schindler/Downloads/slave-agent.jnlp
I get this Error:
Apr 25, 2017 3:01:12 PM hudson.remoting.jnlp.Main createEngine
INFORMATION: Setting up slave: localhost
Apr 25, 2017 3:01:12 PM hudson.remoting.jnlp.Main$CuiListener
INFORMATION: Jenkins agent is running in headless mode.
Apr 25, 2017 3:01:13 PM hudson.remoting.jnlp.Main$CuiListener status
INFORMATION: Locating server among [http://localhost:32769/]
Apr 25, 2017 3:01:13 PM hudson.remoting.jnlp.Main$CuiListener error
SCHWERWIEGEND: http://localhost:32769/tcpSlaveAgentListener/ is invalid: 503 Service Unavailable
java.io.IOException: http://localhost:32769/tcpSlaveAgentListener/ is invalid: 503 Service Unavailable
at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:165)
at hudson.remoting.Engine.innerRun(Engine.java:335)
at hudson.remoting.Engine.run(Engine.java:287)
Can Somebody help?