Commit 34a723b9 authored by Greg Messner's avatar Greg Messner
Browse files

Added deletePipeline() (#313).

parent 26437a49
...@@ -227,6 +227,19 @@ public class PipelineApi extends AbstractApi implements Constants { ...@@ -227,6 +227,19 @@ public class PipelineApi extends AbstractApi implements Constants {
return (response.readEntity(Pipeline.class)); return (response.readEntity(Pipeline.class));
} }
/**
* Delete a pipeline from a project.
*
* <pre><code>GitLab Endpoint: DELETE /projects/:id/pipelines/:pipeline_id</code></pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @param pipelineId the pipeline ID to delete
* @throws GitLabApiException if any exception occurs during execution
*/
public void deletePipeline(Object projectIdOrPath, int pipelineId) throws GitLabApiException {
delete(Response.Status.ACCEPTED, null, "projects", getProjectIdOrPath(projectIdOrPath), "pipelines", pipelineId);
}
/** /**
* Retry a job in specified pipelines in a project. * Retry a job in specified pipelines in a project.
* *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment