public class GitLabAPIBuilds extends Object
http://doc.gitlab.com/ce/api/builds.html
| Constructor and Description |
|---|
GitLabAPIBuilds(GitLabAPI gitLabAPI) |
| Modifier and Type | Method and Description |
|---|---|
Paged<GitLabBuild> |
getAllBuilds(Serializable projectId,
Pagination pagination,
String... scopes)
List project builds
|
byte[] |
getBuildArtifacts(Serializable projectId,
Integer buildId)
Get build artifacts
|
public GitLabAPIBuilds(GitLabAPI gitLabAPI)
public Paged<GitLabBuild> getAllBuilds(Serializable projectId, Pagination pagination, String... scopes) throws IOException
Get a list of builds in a project.
GET /projects/:id/builds
projectId - (required) - The ID of a projectpagination - (optional) - number of projects to return per pagescopes - (optional) - he scope of builds to show, one or array of: pending, running, failed, success, canceled; showing all builds if none providedIOExceptionpublic byte[] getBuildArtifacts(Serializable projectId, Integer buildId) throws IOException
Get build artifacts of a project
GET /projects/:id/builds/:build_id/artifacts
projectId - (required) - The ID of a projectbuildId - (required) - The ID of a buildIOExceptionCopyright © 2017 Talanlabs. All rights reserved.