重置实训参数为空的时候修改

This commit is contained in:
huang 2017-05-21 18:04:22 +08:00
parent e1d4d1af97
commit 9fd2d983ef
1 changed files with 1 additions and 1 deletions

View File

@ -22,11 +22,11 @@ class MyshixunsController < ApplicationController
unless g_project.id.nil?
git_rep = g.delete_project(@myshixun.gpid)
logger.info("### delete repository result is #{git_rep}")
params = {:jobName => "#{myshixun_job}"}
if git_rep != true
raise("版本库删除异常")
end
end
params = {:jobName => "#{myshixun_job}"}
uri = URI("#{jenkins_shixuns}/jenkins-exec/game/deleteJob")
res = uri_exec uri, params
if (res && res['code'] != 0)