builds

Source:

Methods

(static) addProjectBuildCancel(id, build_id)

Cancel a build

Source:
See:

POST /projects/:id/builds/:build_id/cancel

curl -X POST -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/cancel"
Parameters:
Name Type Description
id integer

The ID of a project

build_id integer

The ID of a build

(static) addProjectBuildErase(id, build_id)

Erase a build

Source:
See:

POST /projects/:id/builds/:build_id/erase

Parameters:
Name Type Description
id integer

The ID of a project

build_id integer

The ID of a build

(static) addProjectBuildRetry(id, build_id)

Retry a build

Source:
See:

POST /projects/:id/builds/:build_id/retry

curl -X POST -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/1/retry"
Parameters:
Name Type Description
id integer

The ID of a project

build_id integer

The ID of a build

(static) getProjectBuild(id, build_id)

Get a single build

Source:
See:

GET /projects/:id/builds/:build_id

curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/8"
Parameters:
Name Type Description
id integer

The ID of a project

build_id integer

The ID of a build

(static) getProjectBuildArtifacts(id, build_id)

Get build artifacts

Source:
See:

GET /projects/:id/builds/:build_id/artifacts

curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds/8/artifacts"
Parameters:
Name Type Description
id integer

The ID of a project

build_id integer

The ID of a build

(static) getProjectBuilds(id)

List project builds

Source:
See:

GET /projects/:id/builds

curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/builds"
Parameters:
Name Type Description
id integer

The ID of a project

(static) getProjectRepositoryCommitBuilds(id, sha)

List commit builds

Source:
See:

GET /projects/:id/repository/commits/:sha/builds

curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/repository/commits/0ff3ae198f8601a285adcf5c0fff204ee6fba5fd/builds"
Parameters:
Name Type Description
id integer

The ID of a project

sha string

The SHA id of a commit