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

fffff

parent 3a05efc7
...@@ -146,9 +146,9 @@ def checkout_luaui(systemName, branchName) { ...@@ -146,9 +146,9 @@ def checkout_luaui(systemName, branchName) {
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath
def bowerFile = fileExists './bower.json' def bowerFile = fileExists './bower.json'
if (bowerFile) { if (bowerFile) {
sh "sudo bower install --allow-root" sh "bower install --allow-root"
} }
sh "sudo npm install" sh "npm install"
} else { } else {
sh "cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/" sh "cp -rf /home/quant_group/config_repository/lua-ui/hook/post-checkout .git/hooks/"
sh "chmod +x .git/hooks/post-checkout" sh "chmod +x .git/hooks/post-checkout"
...@@ -157,9 +157,9 @@ def checkout_luaui(systemName, branchName) { ...@@ -157,9 +157,9 @@ def checkout_luaui(systemName, branchName) {
def bowerFile = fileExists './bower.json' def bowerFile = fileExists './bower.json'
if (bowerFile) { if (bowerFile) {
sh "sudo bower install --allow-root" sh "bower install --allow-root"
} }
sh "sudo npm install" sh "npm install"
} }
......
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