Jobs /
List job builds
Lists builds for the given job.
Required permission
Project > Jobs > General > Read
Path parameters
projectId
string requiredID of the projectjobId
string requiredID of the job
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.builds
[array] requiredAn array of builds.- {object}
id
string requiredID of the build.branch
stringName of the branch the built commit belongs to.pullRequestId
numberID of the pull request the commit belongs to.status
stringThe status of the build.one ofQUEUED, PENDING, STARTING, CLONING, BUILDING, UPLOADING, ABORTED, FAILURE, SUBMISSION_FAILURE, SUCCESS, CRASHEDsha
stringThe sha of the built commit.concluded
booleanWhether the build has finished.createdAt
stringTimestamp of the build initiation.success
booleanWhether the build was successful.message
stringDescription of the build status.buildConcludedAt
numberTimestamp of the build concluding.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/projects/{projectId}/jobs/{jobId}/build
Example response
200 OK
Returns a list of builds for the given job.
JSON
{
"data": {
"builds": [
{
"id": "joyous-view-6290",
"branch": "main",
"status": "SUCCESS",
"sha": "12c15e7ee25fd78f567ebf87f9178b8ad70025b3",
"concluded": true,
"createdAt": "2021-07-28T15:55:38.296Z",
"success": true,
"message": "Image successfully built",
"buildConcludedAt": 1606237973
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}