Backport new behavior to CI API

This commit is contained in:
Robert Schilling 2017-02-24 10:24:14 +01:00
parent c280acb00b
commit 7d60876bc9
2 changed files with 3 additions and 0 deletions

View file

@ -217,6 +217,7 @@ module Ci
build = Ci::Build.find_by_id(params[:id])
authenticate_build!(build)
status(200)
build.erase_artifacts!
end
end

View file

@ -8,6 +8,8 @@ module Ci
end
delete "delete" do
authenticate_runner!
status(200)
Ci::Runner.find_by_token(params[:token]).destroy
end