Skip to content

Commit 4c01454

Browse files
committed
Fixed createPipeline, was looking for OK instead of CREATED.
1 parent 0f63ef1 commit 4c01454

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +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-
196-
Response response = post(Response.Status.OK, formData.asMap(), "projects", projectId, "pipelines");
195+
Response response = post(Response.Status.CREATED, formData.asMap(), "projects", projectId, "pipelines");
197196
return (response.readEntity(Pipeline.class));
198197
}
199198

0 commit comments

Comments
 (0)