Commit e4a13705 authored by tower's avatar tower

edit

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