...
|
...
|
@@ -251,14 +251,33 @@ |
|
|
|
|
|
singleSpecialLbProjectBuild(resultAreaId,jsonLbResult);
|
|
|
}else{
|
|
|
textAreaAppend(resultAreaId,"lb最多只有一台主机,原流程直接发布!");
|
|
|
|
|
|
jsonLbResult.deployIps="";//要发布ip为空,则根据配置文件查找全部机器
|
|
|
var d=deployYohoSearchService(resultAreaId,jsonLbResult);
|
|
|
d.then(function () {
|
|
|
textAreaAppend(resultAreaId,"发布成功,完成!!");
|
|
|
document.getElementById("task-info-div_"+projectName).innerHTML = "<strong>发布成功</strong>";
|
|
|
return ;
|
|
|
var dialog = $("<div>").appendTo($("body"));
|
|
|
dialog.dialog({
|
|
|
title: "提示",
|
|
|
backdrop: "static",
|
|
|
content: "负载均衡查询到一台或者没有机器实例,通过原流程发布",
|
|
|
buttons: [{
|
|
|
text: "否",
|
|
|
className: "btn-info",
|
|
|
onclick: function () {
|
|
|
dialog.dialog("hide");
|
|
|
}
|
|
|
}, {
|
|
|
text: "是",
|
|
|
className: "btn-danger",
|
|
|
onclick: function () {
|
|
|
dialog.dialog("hide");
|
|
|
textAreaAppend(resultAreaId,"lb最多只有一台主机,原流程直接发布!");
|
|
|
|
|
|
jsonLbResult.deployIps="";//要发布ip为空,则根据配置文件查找全部机器
|
|
|
var d=deployYohoSearchService(resultAreaId,jsonLbResult);
|
|
|
d.then(function () {
|
|
|
textAreaAppend(resultAreaId,"发布成功,完成!!");
|
|
|
document.getElementById("task-info-div_"+projectName).innerHTML = "<strong>发布成功</strong>";
|
|
|
return ;
|
|
|
});
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
}else{
|
...
|
...
|
|