Method: Gitlab::Client::Builds#build_erase

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

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

Erase a single build of a project (remove build artifacts and a build trace)

Examples:

Gitlab.build_erase(5, 1)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a build.

Returns:



104
105
106
# File 'lib/gitlab/client/builds.rb', line 104

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