Commit 23d5da25 authored by daidekun's avatar daidekun

lua-ui

parent 1bd1bfe1
...@@ -30,15 +30,15 @@ def prepare_ui(systemName, contextDir) { ...@@ -30,15 +30,15 @@ def prepare_ui(systemName, contextDir) {
sh "cp -rf /home/quant_group/config_repository/ui/${systemName}.js env.config.js" sh "cp -rf /home/quant_group/config_repository/ui/${systemName}.js env.config.js"
} }
def prepare_openresty(systemNames, contextDir) { def prepare_luaui(systemNames, contextDir) {
sh "rm -rf ${contextDir}" sh "rm -rf ${contextDir}"
sh "cd /home/quant_group/qg-dockerfiles/templates/openresty; git pull; cd -" sh "cd /home/quant_group/qg-dockerfiles/templates/lua-ui; git pull; cd -"
sh "cp -rf /home/quant_group/qg-dockerfiles/templates/openresty ${contextDir}" sh "cp -rf /home/quant_group/qg-dockerfiles/templates/lua-ui ${contextDir}"
sh "cd /home/quant_group/config_repository/openresty; git pull; cd -" sh "cd /home/quant_group/config_repository/lua-ui; git pull; cd -"
arrSystem = systemNames.spit("--") arrSystem = systemNames.spit("--")
for (systemName in arrSystem) { for (systemName in arrSystem) {
sh "cp -rf /home/quant_group/config_repository/openresty/${systemName}.js ${systemName}.env.config.js" sh "cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config.js"
} }
} }
...@@ -146,7 +146,7 @@ def build_python(namespace, systemName, contextDir) { ...@@ -146,7 +146,7 @@ def build_python(namespace, systemName, contextDir) {
sh "mv dist.tgz ${contextDir}" sh "mv dist.tgz ${contextDir}"
} }
def build_openresty(namespace, systemNames, contextDir, repoName, branchName, workspace) { def build_luaui(namespace, systemNames, contextDir, repoName, branchName, workspace) {
arrSystem = systemNames.spit("--") arrSystem = systemNames.spit("--")
for (systemName in arrSystem) { for (systemName in arrSystem) {
response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemName}" response = httpRequest "http://192.168.4.3:10088/config_server/get_node_command/${systemName}"
......
...@@ -58,7 +58,7 @@ def call(body) { ...@@ -58,7 +58,7 @@ def call(body) {
_stage.prepare_python(contextDir) _stage.prepare_python(contextDir)
break break
case "openresty": case "openresty":
_stage.prepare_openresty(contextDir) _stage.prepare_luaui(contextDir)
break break
default: default:
echo "未知的buildType: ${config.buildType}" echo "未知的buildType: ${config.buildType}"
...@@ -82,7 +82,7 @@ def call(body) { ...@@ -82,7 +82,7 @@ def call(body) {
_stage.build_python(namespace, originSystemName, contextDir) _stage.build_python(namespace, originSystemName, contextDir)
break break
case "openresty": case "openresty":
_stage.build_openresty(namespace, originSystemName, contextDir) _stage.build_luaui(namespace, originSystemName, contextDir)
break break
default: default:
echo "未知的buildType: ${config.buildType}" echo "未知的buildType: ${config.buildType}"
......
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