评测还原

dev_ec
daiao 6 years ago
parent 9beb3131d2
commit 24881fa282

@ -497,18 +497,19 @@ class MyshixunsController < ApplicationController
resubmit = jsonTestDetails['resubmit'] resubmit = jsonTestDetails['resubmit']
outPut = tran_base64_decode64(jsonTestDetails['outPut']) outPut = tran_base64_decode64(jsonTestDetails['outPut'])
jenkins_testsets = jsonTestDetails['msg'] jenkins_testsets = jsonTestDetails['msg']
# 创建pod的状态 0 失败 1 成功 compile_success = jsonTestDetails['compileSuccess']
create_pod_status = jsonTestDetails['createPodStatus'] # # 创建pod的状态 0 失败 1 成功
# 克隆代码的装填 0 失败 1 成功 # create_pod_status = jsonTestDetails['createPodStatus']
clone_code_status = jsonTestDetails['downloadStatus'] # # 克隆代码的装填 0 失败 1 成功
# 1表示编译成功0 表示运行异常; -1 表示克隆代码失败; -2 表示创建pod失败 # clone_code_status = jsonTestDetails['downloadStatus']
compile_success = if clone_code_status == "0" # # 1表示编译成功0 表示运行异常; -1 表示克隆代码失败; -2 表示创建pod失败
-1 # compile_success = if clone_code_status == "0"
elsif create_pod_status == "0" # -1
-2 # elsif create_pod_status == "0"
else # -2
jsonTestDetails['compileSuccess'] # else
end # jsonTestDetails['compileSuccess']
# end
# message = Base64.decode64(params[:msg]) unless params[:msg].blank? # message = Base64.decode64(params[:msg]) unless params[:msg].blank?
logger.info(outPut) logger.info(outPut)
game = Game.find(game_id) game = Game.find(game_id)

Loading…
Cancel
Save