diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb index 349670f9f..e95277ec3 100644 --- a/app/controllers/myshixuns_controller.rb +++ b/app/controllers/myshixuns_controller.rb @@ -29,6 +29,9 @@ class MyshixunsController < ApplicationController end uri = URI("#{jenkins_shixuns}/jenkins-exec/game/deleteJob") res = uri_exec uri, params + if (res && res['code'] != 0) + raise("Job删除失败") + end redirect_to shixun_exec_shixun_path(shixun) rescue Exception => e flash[:error] = "实训重置失败,请稍后重试}"