Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
4c014541
Commit
4c014541
authored
7 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Fixed createPipeline, was looking for OK instead of CREATED.
parent
0f63ef12
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/gitlab4j/api/PipelineApi.java
+1
-2
src/main/java/org/gitlab4j/api/PipelineApi.java
with
1 addition
and
2 deletions
+1
-2
src/main/java/org/gitlab4j/api/PipelineApi.java
+
1
-
2
View file @
4c014541
...
...
@@ -192,8 +192,7 @@ public class PipelineApi extends AbstractApi implements Constants {
*/
public
Pipeline
createPipeline
(
int
projectId
,
String
ref
)
throws
GitLabApiException
{
GitLabApiForm
formData
=
new
GitLabApiForm
().
withParam
(
"ref"
,
ref
);
Response
response
=
post
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
projectId
,
"pipelines"
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
"projects"
,
projectId
,
"pipelines"
);
return
(
response
.
readEntity
(
Pipeline
.
class
));
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets