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

Discarded buildWithParameters request with the same parameters still returns HTTP 201

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.308

      Description

      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.

       

        Attachments

          Activity

          Hide
          vt v added a comment - - edited

          I mark the priority as Major because I have to use complex logic to prevent me from requesting the build of the same parameters when there are requests with the same parameters in the queue

          Show
          vt v added a comment - - edited I mark the priority as Major because I have to use complex logic to prevent me from requesting the build of the same parameters when there are requests with the same parameters in the queue
          Hide
          vt v added a comment -

          See PR-5615.

          Show
          vt v added a comment - See PR-5615 .

            People

            Assignee:
            sugonyak_ivan Ivan Sugonyak
            Reporter:
            vt v
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: