Commit 0d9ad6fa authored by fgro93's avatar fgro93 Committed by Greg Messner
Browse files

Add getTrace to JobApi (#83)

parent c1473753
...@@ -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.
* *
......
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