Cancel an application component build.
PATCH/applications/:applicationId/components/:applicationComponentId/builds/:id/cancel
Cancel an application component build.
Request
Path Parameters
Header Parameters
CodeNOW API Key
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Detail of the build
- 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
]
The unique identifier of the build.
URL to the build's dashboard.
The unique identifier of the application component.
The version of the application component build.
Possible values: [RELEASE
, PREVIEW
, PRERELEASE
]
The type of the build
The branch from which the application component build was created .
commit
object
nullable
Commit from which the build was created.
The commit SHA.
The short commit SHA.
The commit message.
author
object
nullable
Author of the commit.
The name of the person.
The email of the person.
The date of the commit.
committer
object
nullable
Committer of the commit.
The name of the person.
The email of the person.
The date of the commit.
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.)
deployTo
object[]
nullable
The list of deployment targets after successful build.
Possible values: non-empty
Target environment for the deployment
Possible values: [latest
, preview
, branch
]
Default value: latest
Controls which configuration will be used when deploying PREVIEW builds .
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.
Version pattern to specify application package to be created after successful build.
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.
CI Provider associated with the build
codenow - uses CodeNow CI
external - uses external CI
{
"id": "string",
"url": "string",
"applicationComponentId": "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,
"deployTo": [
{
"environmentId": "string",
"configurationType": "latest"
}
],
"actions": [
"string"
],
"pipeline": "string",
"errorMessage": "string",
"applicationPackage": "string",
"results": [
{
"version": "string",
"type": "string",
"payload": {
"type": "git-revision",
"version": "v1",
"repositoryUrl": "string",
"branch": "string",
"commitSha": "string"
}
}
],
"ciProvider": "string"
}
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.