I have a command that I use to connect to master from one of my Jenkins agents, I did not want to type the connection command each time I boot the agent, so I created a .bat file:
java -jar agent.jar -jnlpUrl http://master_host:8080/computer/Windows%207/slave-agent.jnlp -secret MY_SECRET -workDir "C:\Jenkins"
but there is weird issue, if I type the command manually, it works fine, but if I run the bat file, I am getting error message:
java.io.IOException: Failed to load http://master_host:8080/computer/Windows07/sla
ve-agent.jnlp?encrypt=true: 404 Not Found
does anyone know how to resolve it? My agent is Windows 7 machine.