Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bringing this to the parity with ParameterizedJobMixIn.doBuild() Instead of returning JSON, it returns "201 Created" and responds with the location of the queue item, through which the caller can track how it passes through the queue and eventually gets built/cancelled. The approach in pull request #750 that relies on AbstractProject.getQueueItem() is inherently unreliable, because item can be immediately built before the JSON is rendered, or it might corresponds to other queued items if the build supports concurrent builds, etc.
- Loading branch information
Showing with 5 additions and 7 deletions.