public class PipelineApi extends AbstractApi implements Constants
Constants.ActionType, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenTypeNEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER| Constructor and Description |
|---|
PipelineApi(GitLabApi gitLabApi) |
| Modifier and Type | Method and Description |
|---|---|
Pipeline |
cancelPipelineJobs(Object projectIdOrPath,
int pipelineId)
Cancel jobs of specified pipelines in a project.
|
Pipeline |
createPipeline(Object projectIdOrPath,
String ref)
Create a pipelines in a project.
|
Pipeline |
getPipeline(Object projectIdOrPath,
int pipelineId)
Get single pipelines in a project.
|
List<Pipeline> |
getPipelines(Object projectIdOrPath)
Get a list of pipelines in a project.
|
List<Pipeline> |
getPipelines(Object projectIdOrPath,
Constants.PipelineScope scope,
PipelineStatus status,
String ref,
boolean yamlErrors,
String name,
String username,
Constants.PipelineOrderBy orderBy,
Constants.SortOrder sort)
Get a list of pipelines in a project.
|
Pager<Pipeline> |
getPipelines(Object projectIdOrPath,
Constants.PipelineScope scope,
PipelineStatus status,
String ref,
boolean yamlErrors,
String name,
String username,
Constants.PipelineOrderBy orderBy,
Constants.SortOrder sort,
int itemsPerPage)
Get a Pager of pipelines in a project.
|
List<Pipeline> |
getPipelines(Object projectIdOrPath,
Constants.PipelineScope scope,
PipelineStatus status,
String ref,
boolean yamlErrors,
String name,
String username,
Constants.PipelineOrderBy orderBy,
Constants.SortOrder sort,
int page,
int perPage)
Get a list of pipelines in a project in the specified page range.
|
Pager<Pipeline> |
getPipelines(Object projectIdOrPath,
int itemsPerPage)
Get a Pager of pipelines in a project.
|
List<Pipeline> |
getPipelines(Object projectIdOrPath,
int page,
int perPage)
Get a list of pipelines in a project in the specified page range.
|
Stream<Pipeline> |
getPipelinesStream(Object projectIdOrPath)
Get a Stream of pipelines in a project.
|
Stream<Pipeline> |
getPipelinesStream(Object projectIdOrPath,
Constants.PipelineScope scope,
PipelineStatus status,
String ref,
boolean yamlErrors,
String name,
String username,
Constants.PipelineOrderBy orderBy,
Constants.SortOrder sort)
Get a Stream of pipelines in a project.
|
Pipeline |
retryPipelineJob(Object projectIdOrPath,
int pipelineId)
Retry a job in specified pipelines in a project.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validatepublic PipelineApi(GitLabApi gitLabApi)
public List<Pipeline> getPipelines(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelinesprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instanceGitLabApiException - if any exception occurs during executionpublic List<Pipeline> getPipelines(Object projectIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelinesprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instancepage - the page to getperPage - the number of Pipeline instances per pageGitLabApiException - if any exception occurs during executionpublic Pager<Pipeline> getPipelines(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelinesprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instanceitemsPerPage - the number of Pipeline instances that will be fetched per pageGitLabApiException - if any exception occurs during executionpublic Stream<Pipeline> getPipelinesStream(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelinesprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instanceGitLabApiException - if any exception occurs during executionpublic List<Pipeline> getPipelines(Object projectIdOrPath, Constants.PipelineScope scope, PipelineStatus status, String ref, boolean yamlErrors, String name, String username, Constants.PipelineOrderBy orderBy, Constants.SortOrder sort) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelinesprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instancescope - the scope of pipelines, one of: RUNNING, PENDING, FINISHED, BRANCHES, TAGSstatus - the status of pipelines, one of: RUNNING, PENDING, SUCCESS, FAILED, CANCELED, SKIPPEDref - the ref of pipelinesyamlErrors - returns pipelines with invalid configurationsname - the name of the user who triggered pipelinesusername - the username of the user who triggered pipelinesorderBy - order pipelines by ID, STATUS, REF, USER_ID (default: ID)sort - sort pipelines in ASC or DESC order (default: DESC)GitLabApiException - if any exception occurs during executionpublic List<Pipeline> getPipelines(Object projectIdOrPath, Constants.PipelineScope scope, PipelineStatus status, String ref, boolean yamlErrors, String name, String username, Constants.PipelineOrderBy orderBy, Constants.SortOrder sort, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelinesprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instancescope - the scope of pipelines, one of: RUNNING, PENDING, FINISHED, BRANCHES, TAGSstatus - the status of pipelines, one of: RUNNING, PENDING, SUCCESS, FAILED, CANCELED, SKIPPEDref - the ref of pipelinesyamlErrors - returns pipelines with invalid configurationsname - the name of the user who triggered pipelinesusername - the username of the user who triggered pipelinesorderBy - order pipelines by ID, STATUS, REF, USER_ID (default: ID)sort - sort pipelines in ASC or DESC order (default: DESC)page - the page to getperPage - the number of Pipeline instances per pageGitLabApiException - if any exception occurs during executionpublic Stream<Pipeline> getPipelinesStream(Object projectIdOrPath, Constants.PipelineScope scope, PipelineStatus status, String ref, boolean yamlErrors, String name, String username, Constants.PipelineOrderBy orderBy, Constants.SortOrder sort) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelinesprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instancescope - the scope of pipelines, one of: RUNNING, PENDING, FINISHED, BRANCHES, TAGSstatus - the status of pipelines, one of: RUNNING, PENDING, SUCCESS, FAILED, CANCELED, SKIPPEDref - the ref of pipelinesyamlErrors - returns pipelines with invalid configurationsname - the name of the user who triggered pipelinesusername - the username of the user who triggered pipelinesorderBy - order pipelines by ID, STATUS, REF, USER_ID (default: ID)sort - sort pipelines in ASC or DESC order (default: DESC)GitLabApiException - if any exception occurs during executionpublic Pager<Pipeline> getPipelines(Object projectIdOrPath, Constants.PipelineScope scope, PipelineStatus status, String ref, boolean yamlErrors, String name, String username, Constants.PipelineOrderBy orderBy, Constants.SortOrder sort, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelinesprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instancescope - the scope of pipelines, one of: RUNNING, PENDING, FINISHED, BRANCHES, TAGSstatus - the status of pipelines, one of: RUNNING, PENDING, SUCCESS, FAILED, CANCELED, SKIPPEDref - the ref of pipelinesyamlErrors - returns pipelines with invalid configurationsname - the name of the user who triggered pipelinesusername - the username of the user who triggered pipelinesorderBy - order pipelines by ID, STATUS, REF, USER_ID (default: ID)sort - sort pipelines in ASC or DESC order (default: DESC)itemsPerPage - the number of Pipeline instances that will be fetched per pageGitLabApiException - if any exception occurs during executionpublic Pipeline getPipeline(Object projectIdOrPath, int pipelineId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelines/:pipeline_idprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instancepipelineId - the pipeline ID to getGitLabApiException - if any exception occurs during executionpublic Pipeline createPipeline(Object projectIdOrPath, String ref) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/pipelineprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instanceref - reference to commitGitLabApiException - if any exception occurs during executionpublic Pipeline retryPipelineJob(Object projectIdOrPath, int pipelineId) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/pipelines/:pipeline_id/retryprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instancepipelineId - the pipeline ID to retry a job fromGitLabApiException - if any exception occurs during executionpublic Pipeline cancelPipelineJobs(Object projectIdOrPath, int pipelineId) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/pipelines/:pipeline_id/cancelprojectIdOrPath - the project in the form of an Integer(ID), String(path), or Project instancepipelineId - the pipeline ID to cancel jobsGitLabApiException - if any exception occurs during executionCopyright © 2019. All rights reserved.