Running agent with batch file fails to connect

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Hi can anyone help me on the below issue..

      i tried connecting my windows slave in cmd with this command and it was able to connect. but if i try running it through batch file in order to avoid manual connection each time i restart the system it was not able to connect.

      i tried connecting my windows slave in cmd with this command and it was able to connect.

      "java -jar agent.jar -jnlpUrl <my ip>jenkins-agent.jnlp -secret <my secret> -workDir "C:\jenkins"

      but if i try running it through batch file in order to avoid manual connection each time i restart the system it was not able to connect. below is the error

      Failed to obtain http://***********/computer/windows0slave0node/jenkins-agent.jnlp?encrypt=true
      java.io.IOException: Failed to load http://************/computer/windows0slave0node/jenkins-agent.jnlp?encrypt=true: 404 Not Found
      at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:514)
      at hudson.remoting.Launcher.run(Launcher.java:346)
      at hudson.remoting.Launcher.main(Launcher.java:297)
      Waiting 10 seconds before retry

      am using windows ec2 instance... please help on this

            Assignee:
            Unassigned
            Reporter:
            niranjan
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: