Commit 7d60876b authored by Robert Schilling's avatar Robert Schilling

Backport new behavior to CI API

parent c280acb0
...@@ -217,6 +217,7 @@ module Ci ...@@ -217,6 +217,7 @@ module Ci
build = Ci::Build.find_by_id(params[:id]) build = Ci::Build.find_by_id(params[:id])
authenticate_build!(build) authenticate_build!(build)
status(200)
build.erase_artifacts! build.erase_artifacts!
end end
end end
......
...@@ -8,6 +8,8 @@ module Ci ...@@ -8,6 +8,8 @@ module Ci
end end
delete "delete" do delete "delete" do
authenticate_runner! authenticate_runner!
status(200)
Ci::Runner.find_by_token(params[:token]).destroy Ci::Runner.find_by_token(params[:token]).destroy
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment