Commit 816365cf authored by 温海元's avatar 温海元

add npm

parent ef183a9e
...@@ -733,7 +733,8 @@ def get_sonar_check(systemName,branchName,pipesCallback,sonarCallback,dingRobotA ...@@ -733,7 +733,8 @@ def get_sonar_check(systemName,branchName,pipesCallback,sonarCallback,dingRobotA
} }
if(projectAttr["type"] == 'node' || projectAttr["type"] == 'ui'){ if(projectAttr["type"] == 'node' || projectAttr["type"] == 'ui'){
_utils().beautyEcho("lint check +++", "info") _utils().beautyEcho("lint check +++", "info")
sh "npm install" //sh "npm install"
sh 'npm install --unsafe-perm=true --allow-root'
sh "npm run lint" sh "npm run lint"
} }
}else{ }else{
......
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