重置实训参数为空的时候修改
This commit is contained in:
parent
e1d4d1af97
commit
9fd2d983ef
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue