Method: Gitlab::Client::Builds#build_retry

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

#build_retry(project, id) ⇒ Array<Gitlab::ObjectifiedHash>

Retry a build.

Examples:

Gitlab.build_retry(5, 1)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a build.

Returns:


92
93
94
# File 'lib/gitlab/client/builds.rb', line 92

def build_retry(project, id)
  post("/projects/#{url_encode project}/builds/#{id}/retry")
end