diff --git a/src/main/java/com/taover/bazhuayun/analysis/web/module/heartbeat/service/HeartbeatDeployServiceImpl.java b/src/main/java/com/taover/bazhuayun/analysis/web/module/heartbeat/service/HeartbeatDeployServiceImpl.java index a032386..c118157 100644 --- a/src/main/java/com/taover/bazhuayun/analysis/web/module/heartbeat/service/HeartbeatDeployServiceImpl.java +++ b/src/main/java/com/taover/bazhuayun/analysis/web/module/heartbeat/service/HeartbeatDeployServiceImpl.java @@ -32,15 +32,20 @@ public class HeartbeatDeployServiceImpl implements HeartbeatDeployService { if(item.getInstance() == null || StringUtils.isBlank(item.getInstance().getDeployUrl())) { return; } - String response = null; - try { - response = UtilHttpByOkHttp.sendGet(item.getInstance().getDeployUrl(), null); - this.heartbeatReformService.sendReformDeploy(item); - } catch (Exception e) { - UtilLog.error("调用自动发布URL发生异常,发布URL["+item.getInstance().getDeployUrl()+"]", e, HeartbeatDeployServiceImpl.class); - response = e.getMessage(); - this.heartbeatReformService.sendErrorMsg(item, response); + String deployUrl = item.getInstance().getDeployUrl(); + String[] deployUrlArray = deployUrl.split(";"); + for (int i = 0; i < deployUrlArray.length; i++) { + String response = null; + String realDeployUrl = deployUrlArray[i]; + try { + response = UtilHttpByOkHttp.sendGet(realDeployUrl, null); + this.heartbeatReformService.sendReformDeploy(item); + } catch (Exception e) { + UtilLog.error("调用自动发布URL发生异常,发布URL["+realDeployUrl+"]", e, HeartbeatDeployServiceImpl.class); + response = e.getMessage(); + this.heartbeatReformService.sendErrorMsg(item, response); + } + this.createDeployLog(item, response); } - this.createDeployLog(item, response); } } -- libgit2 0.21.2