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:

  • The ID or name of a project.

  • The ID of a build.

Returns:

  • The builds changes.



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