summaryrefslogtreecommitdiff
path: root/lib/ci/api/builds.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ci/api/builds.rb')
-rw-r--r--lib/ci/api/builds.rb19
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