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

Discarded buildWithParameters request with the same parameters still returns HTTP 201

XMLWordPrintable

    • 2.308

      When I use the buildwithparameters api, I need to submit multiple build requests at one time, the parameters of these requests are the same. I just want to queue up and build slowly.

      But the phenomenon is:

      Jenkins has only one request under building, one request in the queue, abandoning all other requests.

      I can understand that Jenkins does not want requests with the same parameters to queue repeatedly.

      The point is that each request returns HTTP 201 status code, this led me to think that all the requests were created and queued.

      But requests that are discarded or considered duplicate by Jenkins are not actually created. 

      HTTP is a stateless protocol. It returns 201, but it is a task created by a previous request. This is unreasonable.

      Expect:  If the request is not real created, please return the appropriate http status code.

       

            sugonyak_ivan Ivan Sugonyak
            vt v
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: