Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
34a723b9
Commit
34a723b9
authored
Feb 25, 2019
by
Greg Messner
Browse files
Added deletePipeline() (#313).
parent
26437a49
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/PipelineApi.java
View file @
34a723b9
...
@@ -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.
*
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment