Commit 65a1d227 authored by daidekun's avatar daidekun

使用配置中心

parent 6da47b52
......@@ -145,25 +145,13 @@ def build_luaui(namespace, systemNames, contextDir) {
arrSystem = systemNames.split("--")
for (systemName in arrSystem) {
dir (systemName) {
if (systemName == "pinjamancepat-credit-review-ui") {
buildCmd = "npm run build"
configPath = "src/config/env.config.js"
sh "cp -f ../${systemName}.env.config.js ${configPath}"
configPath = "src/config/production.config.js"
sh "cp -f ../${systemName}.env.config.js ${configPath}"
}else{
response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemName}"
def res_json = jsonParse(response.content)
print "=====Build Command Is====="
echo res_json.toString()
configPath = res_json["configPath"]
buildCmd = res_json["buildCmd"]
configName = systemName
print "=========================="
sh "mv -f ../${systemName}.env.config.js ${configPath}"
}
def res_json = project_attr(systemName)
configPath = res_json["configPath"]
buildCmd = res_json["buildCmd"]
configName = systemName
sh "mv -f ../${systemName}.env.config.js ${configPath}"
def bowerFile = fileExists './bower.json'
......
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