Commit 77f07bc3 authored by wentao.suo's avatar wentao.suo

fix

parent c19a6677
...@@ -82,13 +82,15 @@ def prepare_java(systemName, contextDir) { ...@@ -82,13 +82,15 @@ def prepare_java(systemName, contextDir) {
def prepare_nodejs(systemName, contextDir) { def prepare_nodejs(systemName, contextDir) {
sh "cp -rf /home/quant_group/qg-dockerfiles/templates/nodejs/* ${contextDir}" sh "cp -rf /home/quant_group/qg-dockerfiles/templates/nodejs/* ${contextDir}"
sh "cp -rf /home/quant_group/config_repository/nodejs/${systemName}.js env.config"
sh "cp -rf /home/quant_group/config_repository/lua-ui/npmrc/common-npmrc /root/.npmrc"
} }
def prepare_luaui(systemName, contextDir) { def prepare_luaui(systemName, contextDir) {
sh "cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config" sh "cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config"
sh "cp -rf /home/quant_group/config_repository/lua-ui/npmrc/common-npmrc /root/.npmrc"
} }
...@@ -144,13 +146,14 @@ def checkout_python(systemName, branchName) { ...@@ -144,13 +146,14 @@ def checkout_python(systemName, branchName) {
def checkout_nodejs(systemName, branchName) { def checkout_nodejs(systemName, branchName) {
def npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
def specialNpmrc = new File( "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc" ) def specialNpmrc = new File( npmrcPath )
def npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if(specialNpmrc.exists()){ if(specialNpmrc.exists()){
npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
sh "cp -rf ${npmrcPath} .npmrc"
} }
sh "cp -rf ${npmrcPath} .npmrc"
def projectAttr = project_attr(systemName) def projectAttr = project_attr(systemName)
...@@ -182,13 +185,12 @@ def checkout_luaui(systemName, branchName) { ...@@ -182,13 +185,12 @@ def checkout_luaui(systemName, branchName) {
echo "- ${currentPath} -" echo "- ${currentPath} -"
sh "whoami" sh "whoami"
echo "----------------------------" echo "----------------------------"
def npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
def specialNpmrc = new File( "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc" ) def specialNpmrc = new File( npmrcPath )
def npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if(specialNpmrc.exists()){ if(specialNpmrc.exists()){
npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc" sh "cp -rf ${npmrcPath} .npmrc"
} }
sh "cp -rf ${npmrcPath} .npmrc"
_utils().beautyEcho("ui project : ${systemName}" , "info") _utils().beautyEcho("ui project : ${systemName}" , "info")
......
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