Method: Gitlab::Client::Jobs#pipeline_bridges

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

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

Gets a list of Bridge Jobs from a pipeline

Examples:

Gitlab.pipeline_bridges(1, 2)
Gitlab.pipeline_bridges("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 bridge jobs to show, one or array of: created, pending, running, failed, success, canceled, skipped, manual; showing all bridge jobs if none provided.

Returns:

[View source]

50
51
52
# File 'lib/gitlab/client/jobs.rb', line 50

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