Commit 2b4f0a85 authored by wentao.suo's avatar wentao.suo

add special npmrc

parent 27a1b18b
...@@ -170,7 +170,15 @@ def checkout_luaui(systemName, branchName) { ...@@ -170,7 +170,15 @@ def checkout_luaui(systemName, branchName) {
echo "- ${currentPath} -" echo "- ${currentPath} -"
sh "whoami" sh "whoami"
echo "----------------------------" echo "----------------------------"
sh "cp -rf /home/quant_group/config_repository/lua-ui/npmrc/npmrc /root/.npmrc"
def specialNpmrc = new File( "/home/quant_group/config_repository/lua-ui/npmrc/${systemName}-npmrc" )
if(specialNpmrc.exists()){
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") _utils().beautyEcho("ui project : ${systemName}" , "info")
projectAttr = project_attr(systemName) projectAttr = project_attr(systemName)
......
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