Commit 5b85a008 authored by tower's avatar tower

fix node

parent 8d5b2b4d
...@@ -184,7 +184,7 @@ def checkout_nodejs(systemName, branchName) { ...@@ -184,7 +184,7 @@ def checkout_nodejs(systemName, branchName) {
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" sh "/root/.nvm/versions/node/v8.9.1/bin/npm install"
} }
...@@ -249,7 +249,7 @@ def checkout_luaui(systemName, branchName) { ...@@ -249,7 +249,7 @@ def checkout_luaui(systemName, branchName) {
} }
} }
sh "npm install" sh "/root/.nvm/versions/node/v8.9.1/bin/npm install"
} }
...@@ -265,7 +265,7 @@ def ext_bower_install(){ ...@@ -265,7 +265,7 @@ def ext_bower_install(){
def ext_npm_intall(){ def ext_npm_intall(){
def packageFile = fileExists './package.json' def packageFile = fileExists './package.json'
if(packageFile){ if(packageFile){
sh "npm install" sh "/root/.nvm/versions/node/v8.9.1/bin/npm install"
return 1 return 1
} }
return 0 return 0
...@@ -343,10 +343,11 @@ def build_luaui( systemName, branchName,contextDir) { ...@@ -343,10 +343,11 @@ def build_luaui( systemName, branchName,contextDir) {
if(systemName=='xjd-ui' && branchName == 'apollo'){ if(systemName=='xjd-ui' && branchName == 'apollo'){
sh "npm run build" sh "/root/.nvm/versions/node/v8.9.1/bin/npm run build"
} else { } else {
sh "mv -f ./${systemName}.env.config ${configPath}" sh "mv -f ./${systemName}.env.config ${configPath}"
sh buildCmd def cmda = buildCmd.replace("npm ","/root/.nvm/versions/node/v8.9.1/bin/npm " )
sh cmda
} }
......
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