The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed (View Workflow)
Environment:Jenkins version -> 2.235.
Jenkins job ->
- Do not allow concurrent builds.
- Build time is about 10 minutes.
Usage -> Via rest api.
When I use thebuildwithparametersapi, I need to submitmultiplebuild requests atone time, the parameters of these requests are thesame. 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 returnsHTTP 201状态码,这让我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.
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