Commit 4c014541 authored by Greg Messner's avatar Greg Messner
Browse files

Fixed createPipeline, was looking for OK instead of CREATED.

parent 0f63ef12
...@@ -192,8 +192,7 @@ public class PipelineApi extends AbstractApi implements Constants { ...@@ -192,8 +192,7 @@ public class PipelineApi extends AbstractApi implements Constants {
*/ */
public Pipeline createPipeline(int projectId, String ref) throws GitLabApiException { public Pipeline createPipeline(int projectId, String ref) throws GitLabApiException {
GitLabApiForm formData = new GitLabApiForm().withParam("ref", ref); GitLabApiForm formData = new GitLabApiForm().withParam("ref", ref);
Response response = post(Response.Status.CREATED, formData.asMap(), "projects", projectId, "pipelines");
Response response = post(Response.Status.OK, formData.asMap(), "projects", projectId, "pipelines");
return (response.readEntity(Pipeline.class)); return (response.readEntity(Pipeline.class));
} }
......
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