diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2016-02-03 14:12:33 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-02-19 17:24:59 +0100 |
commit | 13f92521c22f63140adbf933737e0c5dc988a8d4 (patch) | |
tree | 64e14a973a4ac7499dfbe5d9977c8c0326ff97d9 /lib/ci | |
parent | a2eac4684c0562df06d28617f81e2494e673bbb4 (diff) | |
download | gitlab-ce-13f92521c22f63140adbf933737e0c5dc988a8d4.tar.gz |
Move build eraseable API to proper API context
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/api/builds.rb | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb index f37a96da93c..2e9a5d311f9 100644 --- a/lib/ci/api/builds.rb +++ b/lib/ci/api/builds.rb @@ -146,7 +146,7 @@ module Ci present_file!(artifacts_file.path, artifacts_file.filename) end - # Remove the artifacts file from build + # Remove the artifacts file from build - Runners only # # Parameters: # id (required) - The ID of a build @@ -163,23 +163,6 @@ module Ci build.remove_artifacts_file! build.remove_artifacts_metadata! end - - # Erase build (remove artifacts and build trace) - # - # Parameters: - # id (required) - The ID of a build - # token (required) - The build authorization token - # Headers: - # BUILD-TOKEN (required) - The build authorization token, the same as token - # Example Request: - # DELETE /builds/:id/content - delete ':id/content' do - build = Ci::Build.find_by_id(params[:id]) - not_found! unless build - authenticate_build_token!(build) - - build.erase! - end end end end |