Method: Gitlab::Client::Pipelines#pipelines

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

#pipelines(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Gets a list of project pipelines.

Examples:

Gitlab.pipelines(5)
Gitlab.pipelines(5, { per_page: 10, page:  2 })

Parameters:

  • project (Integer, String)

    The ID or name of a project.

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

    A customizable set of options.

Options Hash (options):

  • :page (Integer)

    The page number.

  • :per_page (Integer)

    The number of results per page.

Returns:

[View source]

18
19
20
# File 'lib/gitlab/client/pipelines.rb', line 18

def pipelines(project, options = {})
  get("/projects/#{url_encode project}/pipelines", query: options)
end