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

Running agent with batch file fails to connect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • _unsorted
    • None

      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

            Unassigned Unassigned
            niranjan24 niranjan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: