缩短时间

This commit is contained in:
huang 2016-07-08 21:29:47 +08:00
parent ee149d15bf
commit f77bad34ad
1 changed files with 3 additions and 3 deletions

View File

@ -71,12 +71,12 @@ class QualityAnalysisController < ApplicationController
# 判断调用sonar分析是否成功
# 等待启动时间处理, 最长时间为30分钟
for i in 0..60 do
sleep(30)
for i in 0..360 do
sleep(5)
@current_build_status = @client.job.get_current_build_status("#{job_name}")
if (@current_build_status == "success" || @current_build_status == "failure")
break
if i == 60
if i == 360
@build_console_result = false
break
end