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

Jenkins API does not return queue id

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      When I invoke jenkins builds via post, I do not receive a queue id.

      curl -i --user ***/*** http://****/jenkins/job/****/build

      returns
      Location: http://****/jenkins/job/****/

      In the issues: https://issues.jenkins-ci.org/browse/JENKINS-12827, it is said that build should return a queue id.

      Not sure why it is not working anymore

      Whereas
      curl -i --user ***/*** http://****/jenkins/job/****/buildWithParameters --form 'json={"parameter":[

      {"name":"test","value":"abc"}

      ]}'

      returns
      Location: http://****/jenkins/job/****/50/

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Pretend to be a browser and you're going to get treated like a browser. /buildWithParameters is the URL to be used from scripts.

          Show
          danielbeck Daniel Beck added a comment - Pretend to be a browser and you're going to get treated like a browser. /buildWithParameters is the URL to be used from scripts.

            People

            • Assignee:
              Unassigned
              Reporter:
              venutade venu tadepalli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: