Backport new behavior to CI API
This commit is contained in:
parent
c280acb00b
commit
7d60876bc9
2 changed files with 3 additions and 0 deletions
|
@ -217,6 +217,7 @@ module Ci
|
|||
build = Ci::Build.find_by_id(params[:id])
|
||||
authenticate_build!(build)
|
||||
|
||||
status(200)
|
||||
build.erase_artifacts!
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,6 +8,8 @@ module Ci
|
|||
end
|
||||
delete "delete" do
|
||||
authenticate_runner!
|
||||
|
||||
status(200)
|
||||
Ci::Runner.find_by_token(params[:token]).destroy
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue