Method: Gitlab::Client::Builds#build

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

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

Gets a single build.

Examples:

Gitlab.build(5, 36)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a build.

Returns:


31
32
33
# File 'lib/gitlab/client/builds.rb', line 31

def build(project, id)
  get("/projects/#{url_encode project}/builds/#{id}")
end