List library builds.
GET/libraries/:libraryId/builds
List library builds.
Request
Path Parameters
Possible values: non-empty
Query Parameters
Default value: 0
Default value: 10
Header Parameters
CodeNOW API Key
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Page of builds
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
Array [
- cancel - build can be cancelled
- rerun - build can be rerun (after failure or cancellation)
Array [
- GitRevision
- Container
- CodeQuality
- Helm
- GitTag
- Maven
- Nuget
- Npm
- Link
- container
- maven
- git-tag
- link
- npm
- nuget
- git-revision
- code-quality
- helm
]
]
Array [
]
Array [
]
content
object[]
required
The unique identifier of the build.
URL to the build's dashboard.
The unique identifier of the library.
The version of the library build.
Possible values: [RELEASE
, PREVIEW
, PRERELEASE
]
The type of the build
The branch from which the library build was created.
commit
object
nullable
Commit from which the build was created.<
author
object
required
committer
object
required
Possible values: [INITIALISING
, WAITING
, BUILDING
, SUCCESSFUL
, FAILED
, CANCELLED
, LOST
, INCOMPLETE
]
The status of the build
INITIALISING: The build is being initialised
WAITING: The build is waiting to be started
BUILDING: The build is in progress
SUCCESSFUL: The build has been successful
FAILED: The build has failed
CANCELLED: The build has been cancelled
INCOMPLETE: Build is missing required CI results
LOST: The status cannot be determined
codeQuality
object
nullable
Code Quality information
Not all pipelines will provide this information.
URL to the code quality report.
Possible values: [NOT_ANALYZED
, ERROR
, SUCCESSFUL
, UNKNOWN
]
Status of the code quality.
The user who requested the build.
The time when the builds was requested
Whether the build is archived or not.
Archived builds do not provide additional information (logs, code quality, etc.)
The list of actions that can be performed on the build.
The pipeline used to create the build.
The error message if the build failed.
results
object[]
nullable
CI results associated with the build
.
The version of the payload.
The type of the payload.
payload
object
The payload (data associated with CI build).
oneOf
The Git Revision information.
Possible values: non-empty
Default value: git-revision
The type of the payload: git-revision
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the repository.
Possible values: non-empty
The branch from which being built.
Possible values: non-empty
The commit SHA which is being built.
A container artifact.
Possible values: non-empty
Default value: container
The type of the payload: container
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the container repository.
Possible values: non-empty
The path to the container artifact.
Possible values: non-empty
The version of the container artifact.
The code quality report.
Possible values: non-empty
Default value: code-quality
The type of the payload: code-quality
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The system used to check the code quality i.e. SonarQube, Codacy, etc.
Possible values: non-empty
The URL to the code quality report.
Helm chart artifact created by the build.
Possible values: non-empty
Default value: helm
The type of the payload: helm
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the repository where the artifact is stored.
Possible values: non-empty
The path to the artifact.
Possible values: non-empty
The version of the artifact.
The tag of the git repository created by the build.
Possible values: non-empty
Default value: git-tag
The type of the payload: git-tag
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The tag of the git repository created by the build.
The maven artifact created by the build.
Possible values: non-empty
Default value: maven
The type of the payload: maven
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the maven repository.
Possible values: non-empty
The group id of the maven artifact.
Possible values: non-empty
The artifact id of the maven artifact.
Possible values: non-empty
The version of the maven artifact.
The Nuget package created by the build.
Possible values: non-empty
Default value: nuget
The type of the payload: nuget
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the Nuget repository.
Possible values: non-empty
The package id of the Nuget artifact.
Possible values: non-empty
The version of the Nuget artifact.
The NPM package created by the build.
Possible values: non-empty
Default value: npm
The type of the payload: npm
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the NPM repository.
Possible values: non-empty
The path to the NPM artifact.
Possible values: non-empty
The version of the NPM artifact.
Link associated with the build.
Possible values: non-empty
Default value: link
The type of the payload: link
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the link.
type
string
Possible values: [container
, maven
, git-tag
, link
, npm
, nuget
, git-revision
, code-quality
, helm
]
Possible values: non-empty
Default value: container
The type of the payload: container
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the container repository.
Possible values: non-empty
The path to the container artifact.
Possible values: non-empty
The version of the container artifact.
Possible values: non-empty
Default value: maven
The type of the payload: maven
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the maven repository.
Possible values: non-empty
The group id of the maven artifact.
Possible values: non-empty
The artifact id of the maven artifact.
Possible values: non-empty
The version of the maven artifact.
Possible values: non-empty
Default value: git-tag
The type of the payload: git-tag
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The tag of the git repository created by the build.
Possible values: non-empty
Default value: link
The type of the payload: link
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the link.
Possible values: non-empty
Default value: npm
The type of the payload: npm
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the NPM repository.
Possible values: non-empty
The path to the NPM artifact.
Possible values: non-empty
The version of the NPM artifact.
Possible values: non-empty
Default value: nuget
The type of the payload: nuget
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the Nuget repository.
Possible values: non-empty
The package id of the Nuget artifact.
Possible values: non-empty
The version of the Nuget artifact.
Possible values: non-empty
Default value: git-revision
The type of the payload: git-revision
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the repository.
Possible values: non-empty
The branch from which being built.
Possible values: non-empty
The commit SHA which is being built.
Possible values: non-empty
Default value: code-quality
The type of the payload: code-quality
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The system used to check the code quality i.e. SonarQube, Codacy, etc.
Possible values: non-empty
The URL to the code quality report.
Possible values: non-empty
Default value: helm
The type of the payload: helm
Possible values: non-empty
Default value: v1
The version of the payload: v1
Possible values: non-empty
The URL of the repository where the artifact is stored.
Possible values: non-empty
The path to the artifact.
Possible values: non-empty
The version of the artifact.
The CI provider used to create the build.
pageable
object
required
orderBy
object[]
required
Possible values: [ASC
, DESC
]
sort
object
required
orderBy
object[]
required
Possible values: [ASC
, DESC
]
{
"content": [
{
"id": "string",
"url": "string",
"libraryId": "string",
"version": "string",
"buildType": "RELEASE",
"branch": "string",
"commit": {
"id": "string",
"shortId": "string",
"message": "string",
"author": {
"name": "string",
"email": "string",
"date": "2024-07-29T15:51:28.071Z"
},
"committer": {
"name": "string",
"email": "string",
"date": "2024-07-29T15:51:28.071Z"
}
},
"status": "INITIALISING",
"codeQuality": {
"url": "string",
"status": "NOT_ANALYZED"
},
"requestedBy": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"archived": true,
"actions": [
"string"
],
"pipeline": "string",
"errorMessage": "string",
"results": [
{
"version": "string",
"type": "string",
"payload": {
"type": "git-revision",
"version": "v1",
"repositoryUrl": "string",
"branch": "string",
"commitSha": "string"
}
}
],
"ciProvider": "string"
}
],
"pageable": {
"orderBy": [
{
"ignoreCase": true,
"direction": "ASC",
"property": "string",
"ascending": true
}
],
"number": 0,
"size": 0,
"sort": {
"orderBy": [
{
"ignoreCase": true,
"direction": "ASC",
"property": "string",
"ascending": true
}
]
}
},
"pageNumber": 0,
"offset": 0,
"size": 0,
"empty": true,
"numberOfElements": 0,
"totalSize": 0,
"totalPages": 0
}
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.