Commit fab60b6f authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza
Browse files

Add unschedule endpont to job controller

parent 6d4f76a0d6b3
......@@ -110,6 +110,13 @@ def cancel
redirect_to build_path(@build)
end
def unschedule
return respond_422 unless @build.scheduled?
@build.unschedule
redirect_to build_path(@build)
end
def status
render json: BuildSerializer
.new(project: @project, current_user: @current_user)
......
......@@ -275,6 +275,7 @@
member do
get :status
post :cancel
post :unschedule
post :retry
post :play
post :erase
......
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