Jobs /
Get builds
Lists builds for the given job.
URL parameters
project
string required
ID of the project
job
string required
ID of the job
run
string required
ID of the job run
Response attributes
object
builds
array required
An array of builds.
object
branch
string
Name of the branch the built commit belongs to.
pullRequestId
number
ID of the pull request the commit belongs to.
status
string
The status of the build.
sha
string
The sha of the built commit.
concluded
boolean
Whether the build has finished.
createdAt
number
Timestamp of the build initiation.
message
string
Description of the build status.
success
boolean
Whether the build was successful.
buildConcludedAt
number
Timestamp of the build concluding.
GET /v1beta/projects/{project}/jobs/{job}/build
Example response
200 OK
Returns a list of builds for the given service.
JSON
{
"builds": [
{
"branch": "main",
"status": "SUCCESS",
"sha": "12c15e7ee25fd78f567ebf87f9178b8ad70025b3",
"concluded": true,
"createdAt": 1606237892572,
"message": "Image successfully built",
"success": true,
"buildConcludedAt": 1606237973
}
]
}