Method: Gitlab::Client::Jobs#pipeline_jobs

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

#pipeline_jobs(project_id, pipeline_id, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Gets a list of Jobs from a pipeline

Examples:

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

Parameters:

  • The (Integer, String)

    ID or name of a project.

  • the (Integer)

    id of the pipeline

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :scope (Array)

    The scope of jobs to show, one or array of: created, pending, running, failed, success, canceled, skipped, manual; showing all jobs if none provided.

Returns:

[View source]

35
36
37
# File 'lib/gitlab/client/jobs.rb', line 35

def pipeline_jobs(project_id, pipeline_id, options = {})
  get("/projects/#{url_encode project_id}/pipelines/#{pipeline_id}/jobs", query: options)
end