Commit db463be2 authored by tywldx's avatar tywldx

f

parent 646e3918
...@@ -98,9 +98,10 @@ function getProjectConfigPromise() { ...@@ -98,9 +98,10 @@ function getProjectConfigPromise() {
let re = {}, hosts = {}; let re = {}, hosts = {};
for (let pro of _pros) { for (let pro of _pros) {
hosts[pro["project_name"]] = pro["host_name"]; hosts[pro["project_name"]] = pro["host_name"];
if (pro["project_name"] == "xjd-ui") { // if (pro["project_name"] == "xjd-ui") {
hosts["xyqb-ui--xjd-ui"] = pro["host_name"]; // hosts["xyqb-ui--xjd-ui"] = pro["host_name"];
} else if (pro["project_name"] == "new-paycenter-ui") { // } else
if (pro["project_name"] == "new-paycenter-ui") {
hosts["paycenter-ui--new-paycenter-ui"] = pro["host_name"]; hosts["paycenter-ui--new-paycenter-ui"] = pro["host_name"];
} }
...@@ -279,12 +280,13 @@ function getfrontendbackend(pros) { ...@@ -279,12 +280,13 @@ function getfrontendbackend(pros) {
for (let key of keys) { for (let key of keys) {
let pro = pros[key] let pro = pros[key]
if (pro.type == "ui") { if (pro.type == "ui") {
// && pro.name != "spider-center-ui" // && pro.name != "spider-center-ui" pro.name != "xyqb-ui" &&
if (pro.name != "xyqb-ui" && pro.name != "paycenter-ui") { if (pro.name != "paycenter-ui") {
if (pro.name == "xjd-ui") { // if (pro.name == "xjd-ui") {
temp.frontend.push("xyqb-ui--xjd-ui"); // temp.frontend.push("xyqb-ui--xjd-ui");
temp[pro.type].push("xyqb-ui--xjd-ui") // temp[pro.type].push("xyqb-ui--xjd-ui")
} else if (pro.name == "new-paycenter-ui") { // } else
if (pro.name == "new-paycenter-ui") {
temp.frontend.push("paycenter-ui--new-paycenter-ui"); temp.frontend.push("paycenter-ui--new-paycenter-ui");
temp[pro.type].push("paycenter-ui--new-paycenter-ui") temp[pro.type].push("paycenter-ui--new-paycenter-ui")
} }
...@@ -373,15 +375,16 @@ admin.get('/get_groupname_by_type_for_jenkins/:_type', async function (req, res) ...@@ -373,15 +375,16 @@ admin.get('/get_groupname_by_type_for_jenkins/:_type', async function (req, res)
}; };
let xjdui = [["", ""], ["", ""]], payui = [["", ""], ["", ""]] let xjdui = [["", ""], ["", ""]], payui = [["", ""], ["", ""]]
for (let o of configs) { for (let o of configs) {
if (o.project_name == "xyqb-ui") { // if (o.project_name == "xyqb-ui") {
xjdui[0][0] = o.git_path_group // xjdui[0][0] = o.git_path_group
xjdui[1][0] = o.project_name // xjdui[1][0] = o.project_name
} else if (o.project_name == "paycenter-ui") { // } else if (o.project_name == "xjd-ui") {
// xjdui[0][1] = o.git_path_group
// xjdui[1][1] = o.project_name
// } else
if (o.project_name == "paycenter-ui") {
payui[0][0] = o.git_path_group payui[0][0] = o.git_path_group
payui[1][0] = o.project_name payui[1][0] = o.project_name
} else if (o.project_name == "xjd-ui") {
xjdui[0][1] = o.git_path_group
xjdui[1][1] = o.project_name
} else if (o.project_name == "new-paycenter-ui") { } else if (o.project_name == "new-paycenter-ui") {
payui[0][1] = o.git_path_group payui[0][1] = o.git_path_group
payui[1][1] = o.project_name payui[1][1] = o.project_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment