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])
|
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
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue