Method: Gitlab::Client::Pipelines#pipeline

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

#pipeline(project, id) ⇒ Gitlab::ObjectifiedHash

Gets a single pipeline.

Examples:

Gitlab.pipeline(5, 36)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a pipeline.

Returns:

[View source]

30
31
32
# File 'lib/gitlab/client/pipelines.rb', line 30

def pipeline(project, id)
  get("/projects/#{url_encode project}/pipelines/#{id}")
end