Commit 39eff454 authored by wentao.suo's avatar wentao.suo

ffff

parent c4efe702
...@@ -39,7 +39,7 @@ def prepare_config(buildType,systemName, contextDir) { ...@@ -39,7 +39,7 @@ def prepare_config(buildType,systemName, contextDir) {
prepare_python(systemName, contextDir) prepare_python(systemName, contextDir)
break break
case "lua-ui": case "lua-ui":
prepare_luaui(systemNames, contextDir) prepare_luaui(systemName, contextDir)
break break
default: default:
echo "未知的buildType: ${config.buildType}" echo "未知的buildType: ${config.buildType}"
...@@ -57,7 +57,7 @@ def prepare_nodejs(systemName, contextDir) { ...@@ -57,7 +57,7 @@ def prepare_nodejs(systemName, contextDir) {
sh "cp -rf /home/quant_group/config_repository/nodejs/${systemName}.js env.config.js" sh "cp -rf /home/quant_group/config_repository/nodejs/${systemName}.js env.config.js"
} }
def prepare_luaui(systemNames, contextDir) { def prepare_luaui(systemName, contextDir) {
sh "cp -rf /home/quant_group/qg-dockerfiles/templates_new/lua-ui/* ${contextDir}" sh "cp -rf /home/quant_group/qg-dockerfiles/templates_new/lua-ui/* ${contextDir}"
sh "cp -rf /home/quant_group/config_repository/lua-ui/lua/*.lua ${contextDir}" sh "cp -rf /home/quant_group/config_repository/lua-ui/lua/*.lua ${contextDir}"
...@@ -68,10 +68,9 @@ def prepare_luaui(systemNames, contextDir) { ...@@ -68,10 +68,9 @@ def prepare_luaui(systemNames, contextDir) {
sh "cp -rf /home/quant_group/config_repository/lua-ui/nginx/default.vh.conf ${contextDir}" sh "cp -rf /home/quant_group/config_repository/lua-ui/nginx/default.vh.conf ${contextDir}"
} }
arrSystem = systemNames.split("--")
for (systemName in arrSystem) { sh "cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config.js"
sh "cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config.js"
}
} }
def prepare_python(systemName, contextDir) { def prepare_python(systemName, contextDir) {
...@@ -136,7 +135,7 @@ def checkout_luaui(systemName, branchNames) { ...@@ -136,7 +135,7 @@ def checkout_luaui(systemName, branchNames) {
sh "cp -rf /home/quant_group/config_repository/lua-ui/npmrc/npmrc /root/.npmrc" sh "cp -rf /home/quant_group/config_repository/lua-ui/npmrc/npmrc /root/.npmrc"
_utils().beautyEcho("ui project : ${systemNames}" , "info") _utils().beautyEcho("ui project : ${systemName}" , "info")
projectAttr = project_attr(systemName) projectAttr = project_attr(systemName)
gitPath = projectAttr["gitPath"] gitPath = projectAttr["gitPath"]
......
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