Method: Gitlab::Client::Builds#builds

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

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

Gets a list of project builds.

Examples:

Gitlab.builds(5)
Gitlab.builds(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.

  • project (Integer, String)

    The ID or name of a project.

Options Hash (options):

  • :page (Integer)

    The page number.

  • :per_page (Integer)

    The number of results per page.

Returns:


19
20
21
# File 'lib/gitlab/client/builds.rb', line 19

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