...
|
...
|
@@ -572,14 +572,13 @@ public class DockerProjectCtrl { |
|
|
String namespace=dockerJenkinsReq.getNamespace()==null?"":dockerJenkinsReq.getNamespace();
|
|
|
String serviceName=dockerJenkinsReq.getServiceName();
|
|
|
Map<String,String> statusMap = new HashMap<>();
|
|
|
Map<String,String> statusDescMap = new HashMap<>();
|
|
|
|
|
|
for(String clusterId:clusterIds.split(",")){
|
|
|
if(StringUtils.isBlank(clusterId)){
|
|
|
continue;
|
|
|
}
|
|
|
List<String> statusAndCreateAt=dockerServerDeployService.queryAppStatus(clusterId,namespace,serviceName);
|
|
|
statusMap.put(clusterId,statusAndCreateAt.get(0));
|
|
|
statusDescMap.put(clusterId,statusAndCreateAt.get(0)+",create at "+statusAndCreateAt.get(1));
|
|
|
}
|
|
|
|
|
|
boolean allNormal=false;
|
...
|
...
|
@@ -595,8 +594,25 @@ public class DockerProjectCtrl { |
|
|
|
|
|
Map<String,Object> rntMap = new HashMap<>();
|
|
|
rntMap.put("result",allNormal);
|
|
|
//rntMap.put("resultMap",statusMap);
|
|
|
rntMap.put("resultDescMap",statusDescMap);
|
|
|
rntMap.put("resultDescMap",statusMap);
|
|
|
if(allNormal){
|
|
|
//获取实例的更新时间
|
|
|
for(String clusterId:clusterIds.split(",")){
|
|
|
List<List<String>> instLs=dockerServerDeployService.queryInstanceStatus(clusterId,namespace,serviceName);
|
|
|
StringBuilder sb=new StringBuilder();
|
|
|
if(!CollectionUtils.isEmpty(instLs)){
|
|
|
for(List<String> tmp:instLs){
|
|
|
if(sb.length()>0){
|
|
|
sb.append(";");
|
|
|
}
|
|
|
sb.append(StringUtils.join(tmp,","));
|
|
|
}
|
|
|
rntMap.put("resultInstDesc",sb.toString());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
rtn.setData(rntMap);
|
|
|
return rtn;
|
|
|
}
|
...
|
...
|
|