-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
When using the REST API to programatically trigger a build, there is no way to atomically retrieve the number of the build which has been triggered (except by workarounds). This would enable REST clients to work with the triggered build, for example waiting for the build to finish and retrieve the results, when there is a possibility that multiple clients can trigger a build at the same time.
Current status:
POST request to the https://[...]/job/[job name]/build url will trigger a build and return a html page of the job overview.
Proposed solution:
Add a parameter to the request that will return a text response with the number of the triggered build instead of a html page.
- duplicates
-
JENKINS-12827 api should return the build number that was queued.
- Resolved