Gets information about a build for the job
Required permission
Project > Jobs > Deployment > Deploy Build
Path parameters
projectId
string requiredID of the projectjobId
string requiredID of the jobbuildId
string requiredID of the job build
Response body
- {object}Response object.
data
{object} requiredResult data.id
string requiredID of the build.branch
stringName of the branch the built commit belongs to.pullRequestId
number | nullID of the pull request the commit belongs to.status
stringThe status of the build.one ofQUEUED, PENDING, UNSCHEDULABLE, STARTING, CLONING, BUILDING, UPLOADING, ABORTED, FAILURE, SUBMISSION_FAILURE, SUCCESS, CRASHED, IN_PROGRESSsha
stringThe sha of the built commit.registry
{object}uri
stringURI of that can be used to pull the image from the registryconcluded
booleanWhether the build has finished.createdAt
stringTimestamp of the build initiation.success
booleanWhether the build was successful.message
string | nullDescription of the build status.buildConcludedAt
numberTimestamp of the build concluding.
API
CLI
JS Client
GET /v1/projects/{projectId}/jobs/{jobId}/build/{buildId}
GET /v1/teams/{teamId}/projects/{projectId}/jobs/{jobId}/build/{buildId}
Example response
200 OK
Returns data about the specified build.
JSON
{
"data": {
"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
}
}