Method: Gitlab::Client::Jobs#job

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

#job(project_id, job_id) ⇒ Object

Gets a single job

Examples:

Gitlab.job(1, 2)
Gitlab.job("project", 2)

Parameters:

  • The (Integer, String)

    ID or name of a project.

  • the (Integer)

    id of the job



62
63
64
# File 'lib/gitlab/client/jobs.rb', line 62

def job(project_id, job_id)
  get("/projects/#{url_encode project_id}/jobs/#{job_id}")
end