public class PipelineApi extends AbstractApi implements Constants
This class provides an entry point to all the GitLab API pipeline related calls. For more information on the Pipeline APIs see:
Pipelines API Pipeline Schedules API Pipeline Triggers APIConstants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.ContributorOrderBy, Constants.DeploymentOrderBy, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.EventScope, Constants.GroupOrderBy, Constants.GroupSearchScope, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestSearchIn, Constants.MergeRequestState, Constants.MilestoneState, Constants.PackageOrderBy, Constants.PackageStatus, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
gitLabApi
NEXT_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,
long pipelineId)
Cancel jobs of specified pipelines in a project.
|
Pipeline |
createPipeline(Object projectIdOrPath,
String ref)
Create a pipelines in a project.
|
Pipeline |
createPipeline(Object projectIdOrPath,
String ref,
List<Variable> variables)
Create a pipelines in a project.
|
Pipeline |
createPipeline(Object projectIdOrPath,
String ref,
Map<String,String> variables)
Create a pipelines in a project.
|
PipelineSchedule |
createPipelineSchedule(Object projectIdOrPath,
PipelineSchedule pipelineSchedule)
create a pipeline schedule for a project.
|
Variable |
createPipelineScheduleVariable(Object projectIdOrPath,
Long pipelineScheduleId,
String key,
String value)
Create a pipeline schedule variable.
|
Trigger |
createPipelineTrigger(Object projectIdOrPath,
String description)
Create a pipeline trigger for a project.
|
void |
deletePipeline(Object projectIdOrPath,
long pipelineId)
Delete a pipeline from a project.
|
void |
deletePipelineSchedule(Object projectIdOrPath,
Long pipelineScheduleId)
Deletes a pipeline schedule from the project.
|
void |
deletePipelineScheduleVariable(Object projectIdOrPath,
Long pipelineScheduleId,
String key)
Deletes a pipeline schedule variable.
|
void |
deletePipelineTrigger(Object projectIdOrPath,
Long triggerId)
Deletes a pipeline trigger from the project.
|
Optional<PipelineSchedule> |
getOptionalPipelineSchedule(Object projectIdOrPath,
Long pipelineScheduleId)
Get a specific pipeline schedule for project as an Optional instance.
|
Optional<Trigger> |
getOptionalPipelineTrigger(Object projectIdOrPath,
Long triggerId)
Get a specific pipeline trigger for project as an Optional instance.
|
Pipeline |
getPipeline(Object projectIdOrPath,
long 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.
|
List<Pipeline> |
getPipelines(Object projectIdOrPath,
PipelineFilter filter)
Get a list of pipelines in a project filtered with the provided
PipelineFilter . |
Pager<Pipeline> |
getPipelines(Object projectIdOrPath,
PipelineFilter filter,
int itemsPerPage)
Get a Pager of pipelines in a project filtered with the provided
PipelineFilter . |
PipelineSchedule |
getPipelineSchedule(Object projectIdOrPath,
Long pipelineScheduleId)
Get a specific pipeline schedule for project.
|
List<PipelineSchedule> |
getPipelineSchedules(Object projectIdOrPath)
Get a list of the project pipeline_schedules for the specified project.
|
Pager<PipelineSchedule> |
getPipelineSchedules(Object projectIdOrPath,
int itemsPerPage)
Get Pager of project pipeline schedule.
|
List<PipelineSchedule> |
getPipelineSchedules(Object projectIdOrPath,
int page,
int perPage)
Get list of project pipeline schedules in the specified page range.
|
Stream<PipelineSchedule> |
getPipelineSchedulesStream(Object projectIdOrPath)
Get a Stream of the project pipeline schedule for the specified project.
|
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.
|
Stream<Pipeline> |
getPipelinesStream(Object projectIdOrPath,
PipelineFilter filter)
Get a Stream of pipelines in a project filtered with the provided
PipelineFilter . |
Trigger |
getPipelineTrigger(Object projectIdOrPath,
Long triggerId)
Get a specific pipeline schedule for project.
|
List<Trigger> |
getPipelineTriggers(Object projectIdOrPath)
Get a list of the project pipeline triggers for the specified project.
|
Pager<Trigger> |
getPipelineTriggers(Object projectIdOrPath,
int itemsPerPage)
Get Pager of project pipeline triggers.
|
List<Trigger> |
getPipelineTriggers(Object projectIdOrPath,
int page,
int perPage)
Get list of project pipeline triggers in the specified page range.
|
Stream<Trigger> |
getPipelineTriggersStream(Object projectIdOrPath)
Get a Stream of the project pipeline triggers for the specified project.
|
List<Variable> |
getPipelineVariables(Object projectIdOrPath,
Long pipelineId)
Get List of variables of a pipeline.
|
Pager<Variable> |
getPipelineVariables(Object projectIdOrPath,
Long pipelineId,
int itemsPerPage)
Get a Pager of variables of a pipeline.
|
Stream<Variable> |
getPipelineVariablesStream(Object projectIdOrPath,
Long pipelineId)
Get a Stream of variables of a pipeline as a Stream.
|
Pipeline |
retryPipelineJob(Object projectIdOrPath,
long pipelineId)
Retry a job in specified pipelines in a project.
|
PipelineSchedule |
takeOwnershipPipelineSchedule(Object projectIdOrPath,
Long pipelineScheduleId)
Update the owner of the pipeline schedule of a project.
|
Trigger |
takeOwnewrshipOfPipelineTrigger(Object projectIdOrPath,
Long triggerId)
Take ownership of a pipeline trigger for project.
|
Pipeline |
triggerPipeline(Object projectIdOrPath,
String token,
String ref,
List<Variable> variables)
Trigger a pipeline for a project.
|
Pipeline |
triggerPipeline(Object projectIdOrPath,
Trigger trigger,
String ref,
List<Variable> variables)
Trigger a pipeline for a project.
|
PipelineSchedule |
updatePipelineSchedule(Object projectIdOrPath,
PipelineSchedule pipelineSchedule)
Modifies a pipeline schedule for project.
|
Variable |
updatePipelineScheduleVariable(Object projectIdOrPath,
Long pipelineScheduleId,
String key,
String value)
Update a pipeline schedule variable.
|
Trigger |
updatePipelineTrigger(Object projectIdOrPath,
Long triggerId,
String description)
Updates a pipeline trigger for project.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getLabelIdOrName, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, upload, urlEncode, validate
public PipelineApi(GitLabApi gitLabApi)
public List<Pipeline> getPipelines(Object projectIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelines
projectIdOrPath
- the project in the form of an Long(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/pipelines
projectIdOrPath
- the project in the form of an Long(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/pipelines
projectIdOrPath
- the project in the form of an Long(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/pipelines
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceGitLabApiException
- if any exception occurs during executionpublic List<Pipeline> getPipelines(Object projectIdOrPath, PipelineFilter filter) throws GitLabApiException
PipelineFilter
.
GitLab Endpoint: GET /projects/:id/pipelines
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancefilter
- a PipelineFilter instance used to filter the resultsGitLabApiException
- if any exception occurs during executionpublic Pager<Pipeline> getPipelines(Object projectIdOrPath, PipelineFilter filter, int itemsPerPage) throws GitLabApiException
PipelineFilter
.
GitLab Endpoint: GET /projects/:id/pipelines
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancefilter
- a PipelineFilter instance used to filter the resultsitemsPerPage
- the number of Pipeline instances that will be fetched per pageGitLabApiException
- if any exception occurs during executionpublic Stream<Pipeline> getPipelinesStream(Object projectIdOrPath, PipelineFilter filter) throws GitLabApiException
PipelineFilter
.
GitLab Endpoint: GET /projects/:id/pipelines
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancefilter
- a PipelineFilter instance used to filter the resultsGitLabApiException
- 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/pipelines
projectIdOrPath
- the project in the form of an Long(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/pipelines
projectIdOrPath
- the project in the form of an Long(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/pipelines
projectIdOrPath
- the project in the form of an Long(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/pipelines
projectIdOrPath
- the project in the form of an Long(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, long pipelineId) throws GitLabApiException
GitLab Endpoint: GET /projects/:id/pipelines/:pipeline_id
projectIdOrPath
- the project in the form of an Long(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/pipeline
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceref
- reference to commitGitLabApiException
- if any exception occurs during executionpublic Pipeline createPipeline(Object projectIdOrPath, String ref, Map<String,String> variables) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/pipeline
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceref
- reference to commitvariables
- a Map containing the variables available in the pipelineGitLabApiException
- if any exception occurs during executionpublic Pipeline createPipeline(Object projectIdOrPath, String ref, List<Variable> variables) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/pipeline
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceref
- reference to commitvariables
- a Map containing the variables available in the pipelineGitLabApiException
- if any exception occurs during executionpublic void deletePipeline(Object projectIdOrPath, long pipelineId) throws GitLabApiException
GitLab Endpoint: DELETE /projects/:id/pipelines/:pipeline_id
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancepipelineId
- the pipeline ID to deleteGitLabApiException
- if any exception occurs during executionpublic Pipeline retryPipelineJob(Object projectIdOrPath, long pipelineId) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/pipelines/:pipeline_id/retry
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancepipelineId
- the pipeline ID to retry a job fromGitLabApiException
- if any exception occurs during executionpublic Pipeline cancelPipelineJobs(Object projectIdOrPath, long pipelineId) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/pipelines/:pipeline_id/cancel
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancepipelineId
- the pipeline ID to cancel jobsGitLabApiException
- if any exception occurs during executionpublic List<PipelineSchedule> getPipelineSchedules(Object projectIdOrPath) throws GitLabApiException
GET /projects/:id/pipeline_schedules
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredGitLabApiException
- if any exception occurspublic List<PipelineSchedule> getPipelineSchedules(Object projectIdOrPath, int page, int perPage) throws GitLabApiException
GET /projects/:id/pipeline_schedules
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpage
- the page to getperPage
- the number of PipelineSchedule instances per pageGitLabApiException
- if any exception occurspublic Pager<PipelineSchedule> getPipelineSchedules(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GET /projects/:id/pipeline_schedule
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requireditemsPerPage
- the number of PipelineSchedule instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<PipelineSchedule> getPipelineSchedulesStream(Object projectIdOrPath) throws GitLabApiException
GET /projects/:id/pipeline_schedule
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredGitLabApiException
- if any exception occurspublic PipelineSchedule getPipelineSchedule(Object projectIdOrPath, Long pipelineScheduleId) throws GitLabApiException
GET /projects/:id/pipeline_schedules/:pipeline_schedule_id
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineScheduleId
- the ID of the pipeline schedule to getGitLabApiException
- if any exception occurspublic Optional<PipelineSchedule> getOptionalPipelineSchedule(Object projectIdOrPath, Long pipelineScheduleId)
GET /projects/:id/pipeline_schedules/:pipeline_schedule_id
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineScheduleId
- the ID of the hook to getpublic PipelineSchedule createPipelineSchedule(Object projectIdOrPath, PipelineSchedule pipelineSchedule) throws GitLabApiException
POST /projects/:id/pipeline_schedules
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineSchedule
- a PipelineSchedule instance to createGitLabApiException
- if any exception occurspublic void deletePipelineSchedule(Object projectIdOrPath, Long pipelineScheduleId) throws GitLabApiException
DELETE /projects/:id/pipeline_schedules/:pipeline_schedule_id
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineScheduleId
- the project schedule ID to deleteGitLabApiException
- if any exception occurspublic PipelineSchedule updatePipelineSchedule(Object projectIdOrPath, PipelineSchedule pipelineSchedule) throws GitLabApiException
PUT /projects/:id/pipeline_schedules/:pipeline_schedule_id
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineSchedule
- the pipelineSchedule instance that contains the pipelineSchedule info to modifyGitLabApiException
- if any exception occurspublic PipelineSchedule takeOwnershipPipelineSchedule(Object projectIdOrPath, Long pipelineScheduleId) throws GitLabApiException
POST /projects/:id/pipeline_schedules/:pipeline_schedule_id/take_ownership
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineScheduleId
- the pipelineSchedule instance id that ownership has to be taken ofGitLabApiException
- if any exception occurspublic Variable createPipelineScheduleVariable(Object projectIdOrPath, Long pipelineScheduleId, String key, String value) throws GitLabApiException
GitLab Endpoint: POST /projects/:id/pipeline_schedules/:pipeline_schedule_id/variables
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineScheduleId
- the pipelineSchedule IDkey
- the key of a variable; must have no more than 255 characters; only A-Z, a-z, 0-9, and _ are allowedvalue
- the value for the variableGitLabApiException
- if any exception occurs during executionpublic Variable updatePipelineScheduleVariable(Object projectIdOrPath, Long pipelineScheduleId, String key, String value) throws GitLabApiException
GitLab Endpoint: PUT /projects/:id/pipeline_schedules/:pipeline_schedule_id/variables/:key
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineScheduleId
- the pipelineSchedule IDkey
- the key of an existing pipeline schedule variablevalue
- the new value for the variableGitLabApiException
- if any exception occurs during executionpublic void deletePipelineScheduleVariable(Object projectIdOrPath, Long pipelineScheduleId, String key) throws GitLabApiException
DELETE /projects/:id/pipeline_schedules/:pipeline_schedule_id/variables/:key
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineScheduleId
- the pipeline schedule IDkey
- the key of an existing pipeline schedule variableGitLabApiException
- if any exception occurspublic List<Trigger> getPipelineTriggers(Object projectIdOrPath) throws GitLabApiException
GET /projects/:id/triggers
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredGitLabApiException
- if any exception occurspublic List<Trigger> getPipelineTriggers(Object projectIdOrPath, int page, int perPage) throws GitLabApiException
GET /projects/:id/triggers
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpage
- the page to getperPage
- the number of Trigger instances per pageGitLabApiException
- if any exception occurspublic Pager<Trigger> getPipelineTriggers(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
GET /projects/:id/pipeline_schedule
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requireditemsPerPage
- the number of Project instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Trigger> getPipelineTriggersStream(Object projectIdOrPath) throws GitLabApiException
GET /projects/:id/pipeline_schedule
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredGitLabApiException
- if any exception occurspublic Trigger getPipelineTrigger(Object projectIdOrPath, Long triggerId) throws GitLabApiException
GET /projects/:id/triggers/:trigger_id
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredtriggerId
- the ID of the trigger to getGitLabApiException
- if any exception occurspublic Optional<Trigger> getOptionalPipelineTrigger(Object projectIdOrPath, Long triggerId)
GET /projects/:id/triggers/:trigger_id
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredtriggerId
- the ID of the trigger to getpublic Trigger createPipelineTrigger(Object projectIdOrPath, String description) throws GitLabApiException
POST /projects/:id/triggers
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requireddescription
- the trigger descriptionGitLabApiException
- if any exception occurspublic Trigger updatePipelineTrigger(Object projectIdOrPath, Long triggerId, String description) throws GitLabApiException
PUT /projects/:id/triggers/:trigger_id
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredtriggerId
- the trigger ID to updatedescription
- the new trigger descriptionGitLabApiException
- if any exception occurspublic void deletePipelineTrigger(Object projectIdOrPath, Long triggerId) throws GitLabApiException
DELETE /projects/:id/triggers/:trigger_id
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredtriggerId
- the project trigger ID to deleteGitLabApiException
- if any exception occurspublic Trigger takeOwnewrshipOfPipelineTrigger(Object projectIdOrPath, Long triggerId) throws GitLabApiException
PUT /projects/:id/triggers/:trigger_id/take_ownership
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredtriggerId
- the trigger ID to take opwnership ofGitLabApiException
- if any exception occurspublic Pipeline triggerPipeline(Object projectIdOrPath, Trigger trigger, String ref, List<Variable> variables) throws GitLabApiException
POST /projects/:id/trigger/pipeline
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredtrigger
- the Trigger instance holding the trigger tokenref
- the ref that the pipeline is to be triggered forvariables
- a List of variables to be passed with the triggerGitLabApiException
- if any exception occurspublic Pipeline triggerPipeline(Object projectIdOrPath, String token, String ref, List<Variable> variables) throws GitLabApiException
POST /projects/:id/trigger/pipeline
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredtoken
- the trigger tokenref
- the ref that the pipeline is to be triggered forvariables
- a List of variables to be passed with the triggerGitLabApiException
- if any exception occurspublic List<Variable> getPipelineVariables(Object projectIdOrPath, Long pipelineId) throws GitLabApiException
GET /projects/:id/pipelines/:pipeline_id/variables
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineId
- the pipeline IDGitLabApiException
- if any exception occurspublic Pager<Variable> getPipelineVariables(Object projectIdOrPath, Long pipelineId, int itemsPerPage) throws GitLabApiException
GET /projects/:id/pipelines/:pipeline_id/variables
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineId
- the pipeline IDitemsPerPage
- the number of Pipeline instances that will be fetched per pageGitLabApiException
- if any exception occurspublic Stream<Variable> getPipelineVariablesStream(Object projectIdOrPath, Long pipelineId) throws GitLabApiException
GET /projects/:id/pipelines/:pipeline_id/variables
projectIdOrPath
- projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance, requiredpipelineId
- the pipeline IDGitLabApiException
- if any exception occursCopyright © 2022. All rights reserved.