Commit 04397e41 authored by tower's avatar tower

fix

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