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

fix

parent 2b4f0a85
......@@ -172,12 +172,11 @@ def checkout_luaui(systemName, branchName) {
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 /home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc ./.npmrc"
} else {
sh "cp -rf /home/quant_group/config_repository/lua-ui/npmrc/common-npmrc ./.npmrc"
}
}
_utils().beautyEcho("ui project : ${systemName}" , "info")
......@@ -191,7 +190,10 @@ def checkout_luaui(systemName, branchName) {
if(!hookfolder.exists()){
echo ">>>>>>> first checkout project ${systemName}"
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath
sh "cp -rf ${npmrcPath} ${currentPath}/.npmrc"
def bowerResult = ext_bower_install()
def npmResult = ext_npm_intall()
def resultNum = bowerResult +npmResult
......@@ -210,7 +212,7 @@ def checkout_luaui(systemName, branchName) {
}
}else{
sh "cp -rf ${npmrcPath} ${currentPath}/.npmrc"
if(!packejson.exists()){
echo ">>>>>>> is simple ui project"
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: 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