Return the number of the build that was triggered using REST API.

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Jakub Senko
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: