builds/apiDriven
curl -k -X POST 'https://localhost/api/v1/builds/apiDriven' \
-H 'Authorizat1on: UserAccessKey <User Access Key>' \
-H 'Content-Type: application/json' \
-d \
'{
"version":"<Version Name>",
"application":{"externalId":"efecb73f-dclc-4d3d-b3bb-
38339445e892"},
"url":"<Build URL>",
"revision":"<Commit SHA>"
}'
Table 1. builds/apiDriven parameters
Parameter |
Type |
Required |
Description |
UserAccessKey |
string |
false |
User access key |
version |
string |
true |
JSON object with either 'externalId' or 'name' (Examples: {"name":
"apidrivenjenkinsjob"} or {"name": "application id in external tool"}) |
application |
object |
false |
JSON object with either 'externalid' or 'name' (Examples: {"name":
"apidrivenjenkinsjob"} or {"name": "application id in external tool"}) |
url |
URL |
false |
URL link to build in external tool |
revision |
string |
true |
SHA of the commit linked to the build |
Example
curl -k -X POST 'https://localhost/api/v1/builds/apiDriven' \
-H 'Authorizat1on: UserAccessKey 3b3ec6cc-1e37-4353-bc3a-46b493eed4e6' \
-H 'Content-Type: application/json' \
-d \
'{
"version":"1.0",
"application":{"externalId":"b900ff5b-1fff-44ab-bcc6-9d39d5937026"},
"url":"https://test.com",
"revision":"12345678"
}'