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
0d9ad6fa
Commit
0d9ad6fa
authored
Oct 11, 2017
by
fgro93
Committed by
Greg Messner
Oct 10, 2017
Browse files
Add getTrace to JobApi (#83)
parent
c1473753
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/JobApi.java
View file @
0d9ad6fa
...
@@ -191,6 +191,21 @@ public class JobApi extends AbstractApi implements Constants {
...
@@ -191,6 +191,21 @@ public class JobApi extends AbstractApi implements Constants {
return
(
response
.
readEntity
(
InputStream
.
class
));
return
(
response
.
readEntity
(
InputStream
.
class
));
}
}
/**
* Get a trace of a specific job of a project
*
* GET /projects/:id/jobs/:id/trace
*
* @param projectId the project ID to get the specified job's trace for
* @param jobId the job ID to get the trace for
* @return a String containing the specified job's trace
* @throws GitLabApiException if any exception occurs during execution
*/
public
String
getTrace
(
int
projectId
,
int
jobId
)
throws
GitLabApiException
{
Response
response
=
get
(
Response
.
Status
.
OK
,
getDefaultPerPageParam
(),
"projects"
,
projectId
,
"jobs"
,
jobId
,
"trace"
);
return
(
response
.
readEntity
(
String
.
class
));
}
/**
/**
* Cancel specified job in a project.
* Cancel specified job in a project.
*
*
...
...
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