Skip to content

Commit 00821ce

Browse files
committed
Fixed createPipeline() (#230).
1 parent db5b6b5 commit 00821ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gitlab4j/api/PipelineApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public Pipeline getPipeline(int projectId, int pipelineId) throws GitLabApiExcep
183183
/**
184184
* Create a pipelines in a project.
185185
*
186-
* POST /projects/:id/pipelines
186+
* POST /projects/:id/pipeline
187187
*
188188
* @param projectId the project ID to create a pipeline in
189189
* @param ref reference to commit
@@ -192,7 +192,7 @@ public Pipeline getPipeline(int projectId, int pipelineId) throws GitLabApiExcep
192192
*/
193193
public Pipeline createPipeline(int projectId, String ref) throws GitLabApiException {
194194
GitLabApiForm formData = new GitLabApiForm().withParam("ref", ref);
195-
Response response = post(Response.Status.CREATED, formData.asMap(), "projects", projectId, "pipelines");
195+
Response response = post(Response.Status.CREATED, formData.asMap(), "projects", projectId, "pipeline");
196196
return (response.readEntity(Pipeline.class));
197197
}
198198

0 commit comments

Comments
 (0)