Method: Gitlab::Client::Jobs#job_trace

Defined in:
lib/gitlab/client/jobs.rb

#job_trace(project_id, job_id) ⇒ Array<Gitlab::ObjectifiedHash>

Get Job Trace

Examples:

Gitlab.job_trace(1,1)
Gitlab.job_trace("project", 1)

Parameters:

  • The (Integer, String)

    ID or name of a project.

  • the (Integer)

    id of the job

Returns:



162
163
164
165
166
167
# File 'lib/gitlab/client/jobs.rb', line 162

def job_trace(project_id, job_id)
  get("/projects/#{url_encode project_id}/jobs/#{job_id}/trace",
      format: nil,
      headers: { Accept: 'text/plain' },
      parser: ::Gitlab::Request::Parser)
end