测试集
This commit is contained in:
parent
8987c8a5e1
commit
d2138f41bd
|
|
@ -260,7 +260,7 @@ class ChallengesController < ApplicationController
|
|||
end
|
||||
end
|
||||
# 向jenkins端发送请求,构建公共测试用例
|
||||
shixun_modify_status_without_publish(@shixun, 1)
|
||||
shixun_modify_status_publish(@shixun, 1)
|
||||
elsif params[:tab].to_i == 5
|
||||
@challenge_tags.delete_all unless @challenge_tags.blank?
|
||||
unless params[:knowledge].blank?
|
||||
|
|
|
|||
|
|
@ -101,6 +101,17 @@ module ApplicationHelper
|
|||
shixun_modify_status_without_publish shixun, type
|
||||
end
|
||||
|
||||
def shixun_modify_status_publish shixun, type
|
||||
shixun_tomcat = Redmine::Configuration['shixun_tomcat']
|
||||
gameInfo = shixun.gameInfo
|
||||
uri ="#{shixun_tomcat}/bridge/game/publishGame"
|
||||
params = {gameInfo:gameInfo}
|
||||
res = uri_exec uri, params
|
||||
if res && res['code'].to_i != 0
|
||||
raise("实训云平台繁忙(繁忙等级:90)")
|
||||
end
|
||||
end
|
||||
|
||||
# 仅仅产生记录,用于已执行publish的方法
|
||||
# ShixunModify中status 1:表示有更改,开启实训的时候需要重置,0:表示不需要重置或已重置完成
|
||||
def shixun_modify_status_without_publish shixun, type
|
||||
|
|
|
|||
Loading…
Reference in New Issue