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
897e1db0
Commit
897e1db0
authored
Jan 08, 2020
by
Greg Messner
Browse files
Fixed javadocs.
parent
70a85941
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/JobApi.java
View file @
897e1db0
...
...
@@ -495,7 +495,7 @@ public class JobApi extends AbstractApi implements Constants {
/**
* Prevents artifacts from being deleted when expiration is set.
*
* <pre><code>GitLab Endpoint:
DELETE
/projects/:id/jobs/:job_id/
artifacts
</code></pre>
* <pre><code>GitLab Endpoint:
POST
/projects/:id/jobs/:job_id/
keep
</code></pre>
*
* @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path
* @param jobId the ID to keep artifacts for
...
...
@@ -504,7 +504,7 @@ public class JobApi extends AbstractApi implements Constants {
*/
public
Job
keepArtifacts
(
Object
projectIdOrPath
,
Integer
jobId
)
throws
GitLabApiException
{
GitLabApiForm
formData
=
null
;
Response
response
=
post
(
Status
.
CREATED
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"jobs"
,
jobId
,
"keep"
);
Response
response
=
post
(
Status
.
OK
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"jobs"
,
jobId
,
"keep"
);
return
(
response
.
readEntity
(
Job
.
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