Resources Build Get Basic Info
Get Basic Info
Http Method
GET
End Point
/api/builds/{buildId}
Placeholder Description Example
{buildId} Build Id 1
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
{
"id" : 1 ,
"numberScopeId" : 1 ,
"projectId" : 1 ,
"submitterId" : 1 ,
"submitterName" : "string" ,
"cancellerId" : 1 ,
"cancellerName" : "string" ,
"jobName" : "string" ,
"jobWorkspace" : "string" ,
"refName" : "string" ,
"version" : "string" ,
"number" : 1 ,
"commitHash" : "string" ,
"status" : "WAITING" ,
"submitDate" : "2021-07-29T08:27:43.713+00:00" ,
"pendingDate" : "2021-07-29T08:27:43.713+00:00" ,
"runningDate" : "2021-07-29T08:27:43.713+00:00" ,
"finishDate" : "2021-07-29T08:27:43.713+00:00" ,
"retryDate" : "2021-07-29T08:27:43.713+00:00" ,
"submitReason" : "string" ,
"errorMessage" : "string" ,
"requestId" : 1
}
Operation Failed
Status code
Status code other than 200 indicating the error type
Response Body
Error detail of content type "text/plain"
cURL Example
$ curl -u <login name>:<password or access token> https://code.onedev.io/api/builds/1
Please wait...
Page is in error, reload to recover