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

jenkins CLI unable to build ERROR: No such job

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: cli
    • Labels:
      None
    • Environment:
      Centos
    • Similar Issues:

      Description

      I am trying for initiating a build through jenkins-cli.
      downloaded the jenkins-cli.jar and running like
      java -jar jenkins-cli.jar -s http://<IP Address>:8080/ login --username xxxx --password xxxx
      it worksfine
      and I have created one Jenkins job using CLi tool by taking some jenkins jobs xml file as reference using below command
      cat config.xml |java -jar jenkins-cli.jar -s http://<IP Address>:8080/ create-job TEST_AUTO

      TEST_AUTO job got created .
      while initiating a build using command
      java -jar jenkins-cli.jar -s http://<IP Address>:8080/ build TEST_AUTO
      ERROR: No such job 'TEST_AUTO'

      but if we list all jobs using below cli command it lists all jobs fine.
      java -jar jenkins-cli.jar -s http://<IP Address>:8080/ list-jobs

      can you please let us know the solution whether build command to work do we need to change any configuration changes .

      I am planing to initiate a build with parameters actually..using CLI jenkins
      Thanks in Advance..
      Regards,
      Siva

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                sivakondal siva Nukala
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: