Commit c19a6677 authored by wentao.suo's avatar wentao.suo

fix

parent 7137f524
......@@ -84,23 +84,12 @@ def prepare_nodejs(systemName, 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"
def specialNpmrc = new File( "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc" )
def npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if(specialNpmrc.exists()){
npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
}
sh "cp -rf ${npmrcPath} .npmrc"
}
def prepare_luaui(systemName, contextDir) {
sh "cp -rf /home/quant_group/config_repository/lua-ui/config/${systemName}.js ${systemName}.env.config"
def specialNpmrc = new File( "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc" )
def npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if(specialNpmrc.exists()){
npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
}
sh "cp -rf ${npmrcPath} .npmrc"
}
def prepare_python(systemName, contextDir) {
......@@ -155,6 +144,15 @@ def checkout_python(systemName, branchName) {
def checkout_nodejs(systemName, branchName) {
def specialNpmrc = new File( "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc" )
def npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if(specialNpmrc.exists()){
npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
}
sh "cp -rf ${npmrcPath} .npmrc"
def projectAttr = project_attr(systemName)
def gitPath =projectAttr["gitPath"]
......@@ -185,6 +183,12 @@ def checkout_luaui(systemName, branchName) {
sh "whoami"
echo "----------------------------"
def specialNpmrc = new File( "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc" )
def npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/common-npmrc"
if(specialNpmrc.exists()){
npmrcPath = "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc"
}
sh "cp -rf ${npmrcPath} .npmrc"
_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