NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Unique ID for the build. |
|
| ID of the user who submitted the build. |
|
| ID of the namespace the build belongs to, if any. |
|
| Number of the build for the user who submitted it. |
|
| The status of the build, will be one of:
|
|
| The output of the build, if any. |
|
| The list of tags on the build. |
|
| Whether or not the build has been pinned. |
|
| The RFC3339 formatted string at which the build was created. |
|
| The RFC3339 formatted string at which the build started. |
|
| The RFC3339 formatted string at which the build finished. |
|
| The API URL to the build entity itself. |
|
| The API URL to the build's objects. |
|
| The API URL to the build's variables. |
|
| The API URL to the build's jobs. |
|
| The API URL to the build's artifacts. |
|
| The API URL to the build's tags. |
|
| The user the build belongs to. |
|
| The namespace of the build, if any. |
|
| The trigger of the build, if any. |
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| The type of trigger for the build, will be one of:
|
|
| The comment associated with the build. |
|
| A |
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Unique ID for the job. |
|
| ID of the build the job belongs to. |
|
| The name of the stage the job belongs to. |
|
| The name of the job. |
|
| The commands for the job. |
|
| The status of the build, will be one of:
|
|
| The output of the job, if any. |
|
| The RFC3339 formatted string at which the job was created. |
|
| The RFC3339 formatted string at which the job started. |
|
| The RFC3339 formatted string at which the job finished. |
|
| The API URL to the job object itself. |
|
| The build of the job. |
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Unique ID for the build object. |
|
| ID of the build |
|
| The original name of the object. |
|
| The name of the object it was placed as. |
|
| The MIME type of the object. |
|
| The MD5 hash of the object. |
|
| The SHA256 hash of the object. |
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Unique ID for the variable. |
|
| ID of the build the variable belongs to. |
|
| The name of the variable. |
|
| The value of the variable. |
|
| Whether or not the variable was masked. |
|
| The API URL to the original variable itself. |
|
| The build of the variable. |
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Unique ID for the artifact. |
|
| ID of the build the artifact belongs to. |
|
| ID of the job the artifact belongs to. |
|
| The original name of the artifact from the build environment. |
|
| The name of the artifact it was collected as. |
|
| The size of the artifact. This will be |
|
| The MD5 hash of the artifact. This will be |
|
| The SHA256 hash of the artifact. This will be |
|
| The RFC3339 formatted time at which the artifact was created. |
|
| The API URL to the artifact object itself. |
|
| The build of the artifact. |
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| Unique ID for the tag. |
|
| ID of the user who created the tag. |
|
| ID of the build the tag belongs to. |
|
| The name of the tag. |
|
| The RFC3339 formatted string at which the tag was created. |
|
| The API URL to the tag object itself. |
|
| The user of the tag. |
|
| The build of the tag. |
GET
/builds
POST
/builds
GET
/b/:user/:number
GET
/b/:user/:number/objects
GET
/b/:user/:number/variables
GET
/b/:user/:number/jobs
GET
/b/:user/:number/jobs/:name
GET
/b/:user/:number/artifacts
GET
/b/:user/:number/artifacts/:name
GET
/b/:user/:number/tags
POST
/b/:user/:number/tags
DELETE
/b/:user/:number/tags/:name
PATCH
/b/:user/:number/pin
PATCH
/b/:user/:number/unpin
DELETE
/b/:user/:number
List the builds for the currently authenticated user. The following parameters can be given as query parameters to the URL. This requires the build:read
permission.
NAME | TYPE | REQUIRED | DESCRIPTION |
---|---|---|---|
|
| No | Get the builds with the given tag name. |
|
| No | Get the builds with tags like the given value. |
|
| No | Get the builds with the given status, will be one of:
|
This will return a list of builds. The list will be paginated to 25 builds per page, and will be ordered by the most recently submitted builds first. If the builds were paginated, then the pagination information will be in the response header Link
.
Link: <https://api.djinn-ci.com/builds?page=1>; rel="prev",
<https://api.djinn-ci.com/builds?page=3>; rel="next"
This will submit a new build to the server for the currently authenticated user. This requires the build:write
permission.
NAME | TYPE | REQUIRED | DESCRIPTION |
---|---|---|---|
|
| Yes | The YAML formatted build manifest. |
|
| No | The build's comment. |
|
| No | A list of tags to attach to the build. |
$ curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer 1a2b3c4d5f" \ -d '{"manifest":"namespace: djinn\ndriver:\n image: centos/7\n type: qemu\nenv:\n- LOCALE=en_GB.UTF-8\nobjects:\n- data => data\nstages:\n- clean\njobs:\n- stage: clean\n commands:\n - tr -d '0-9' data > data.cleaned\n artifacts:\n - data.cleaned => data.cleaned"}' \ https://api.djinn-ci.com/builds
This will get the objects on the given build. This requires the build:read
permission.
This will return list of build objects.
This will add a tag to the given build. This requires the build:write
permission.
NAME | TYPE | REQUIRED | DESCRIPTION |
---|---|---|---|
|
| Yes | An array of strings submitted as the request body. |
This will remove the tag by the given :name
, from the given build. This requires the build:delete
permission.
This returns no content in the response body.
This will pin the given build. This requires the build:write
permission.
This returns the build.
This will unpin the given build. This requires the build:write
permission.
This returns the build.
This will kill a build that is running. This requires the build:delete
permission.
This returns no content in the response body.