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
00821cea
Commit
00821cea
authored
Aug 12, 2018
by
Greg Messner
Browse files
Fixed createPipeline() (#230).
parent
db5b6b53
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/PipelineApi.java
View file @
00821cea
...
...
@@ -183,7 +183,7 @@ public class PipelineApi extends AbstractApi implements Constants {
/**
* Create a pipelines in a project.
*
* POST /projects/:id/pipeline
s
* POST /projects/:id/pipeline
*
* @param projectId the project ID to create a pipeline in
* @param ref reference to commit
...
...
@@ -192,7 +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
.
CREATED
,
formData
.
asMap
(),
"projects"
,
projectId
,
"pipeline
s
"
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
"projects"
,
projectId
,
"pipeline"
);
return
(
response
.
readEntity
(
Pipeline
.
class
));
}
...
...
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