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

build with form submission does not return queue location

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None

      related to JENKINS-23235 and JENKINS-13546.

      When creating builds using /build, the result is a 201 response where the Location header points to the queue item that represents the new build. Example:

      $ curl -X POST "https://myjenkins/job/plainJob/build" --insecure --include

      HTTP/1.1 100 Continue
      
      HTTP/1.1 201 Created
      Date: Thu, 11 Dec 2014 15:23:38 GMT 
      Server: Jetty(winstone-2.8)
      Location: https://myjenkins/queue/item/39/
      Content-Length: 0
      Content-Type: text/plain
      

      I would expect that parametrized builds with form submission would point to the queue item as well.
      However location header only contains the job link itself:

      $ curl -X POST "https://myjenkins/job/formJob/build" --insecure --include -F json='{"parameter": [

      {"name":"ID", "value":"260"}

      ]}'

      HTTP/1.1 100 Continue
      
      HTTP/1.1 201 Created
      Date: Thu, 11 Dec 2014 15:24:20 GMT 
      Server: Jetty(winstone-2.8)
      Location: https://myjenkins/job/formJob/
      Content-Length: 0
      Content-Type: text/plain
      

            Unassigned Unassigned
            samson A. Sam.
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: