Commit 04397e41 authored by tower's avatar tower

fix

parent 6e0f64fc
......@@ -224,11 +224,16 @@ def checkout_luaui(systemName, branchName) {
if(resultNum ==0){
echo ">>>>>>> is simple ui project"
sh "mkdir dist"
def dist = fileExists './dist'
if(!dist){
sh "mkdir dist"
}
return
} else {
echo ">>>>>>> is node ui project"
def bowerFile = fileExists './bower.json'
sh "npm install"
if (bowerFile) {
sh "bower install --allow-root"
}
......@@ -240,7 +245,10 @@ def checkout_luaui(systemName, branchName) {
if(!packejson.exists()){
echo ">>>>>>> is simple ui project"
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath
sh "mkdir dist"
def dist = fileExists './dist'
if(!dist){
sh "mkdir dist"
}
return
} else{
echo ">>>>>>> is node ui project"
......@@ -248,10 +256,11 @@ def checkout_luaui(systemName, branchName) {
sh "chmod +x .git/hooks/post-checkout"
git branch: branchName, credentialsId: 'e1ccb1ac-1282-4fb4-b766-530ca1a2a2db', url: gitPath
}
}
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