Authored by qinchao

docker发布

@@ -269,7 +269,7 @@ public class DockerProjectCtrl { @@ -269,7 +269,7 @@ public class DockerProjectCtrl {
269 String alarmMsg="镜像制作失败"; 269 String alarmMsg="镜像制作失败";
270 String alarmTypeSuccess="service_exception";//"docker_auto_success"; 270 String alarmTypeSuccess="service_exception";//"docker_auto_success";
271 String alarmTypeFail="service_exception";//"docker_auto_error"; 271 String alarmTypeFail="service_exception";//"docker_auto_error";
272 - for(int i=0;i<40;i++){ 272 + for(int i=0;i<60;i++){
273 DockerJenkinsRecord record=dockerProjectService.queryJenkinsById(buildId); 273 DockerJenkinsRecord record=dockerProjectService.queryJenkinsById(buildId);
274 if(record==null){ 274 if(record==null){
275 //发送短信 275 //发送短信
@@ -280,7 +280,7 @@ public class DockerProjectCtrl { @@ -280,7 +280,7 @@ public class DockerProjectCtrl {
280 if (StringUtils.isBlank(status)){ 280 if (StringUtils.isBlank(status)){
281 //继续查询 281 //继续查询
282 try { 282 try {
283 - Thread.sleep(1*30*1000);//等待30秒再查询 283 + Thread.sleep(1*20*1000);//等待20秒再查询
284 } catch (InterruptedException e) { 284 } catch (InterruptedException e) {
285 log.error("gitWebHook thread sleep error",e); 285 log.error("gitWebHook thread sleep error",e);
286 } 286 }