Status: Closed (View Workflow)
Jenkins version -> 2.235.
Jenkins job ->
- Do not allow concurrent builds.
- Build time is about 10 minutes.
Usage -> Via rest api.
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.
|Field||Original Value||New Value|
|Comment||[ I mark the priority as important because I have to use complex logic to prevent requests with the same parameters from being submitted when they are in the queue :( ]|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Closed [ 6 ]|