修改jenkins的npm引用

This commit is contained in:
谷成伟 2024-11-18 10:27:31 +08:00
parent 94b6344e3e
commit e561ffb4e3

2
Jenkinsfile vendored
View File

@ -14,7 +14,7 @@ pipeline {
expression { params.publish_type == "ui" || params.publish_type == "all" } expression { params.publish_type == "ui" || params.publish_type == "all" }
} }
steps { steps {
nodejs(cacheLocationStrategy: workspace(), configId: '8e356590-2fee-4f1f-b0e9-5cea43299887', nodeJSInstallationName: 'nodejs202122') { nodejs(cacheLocationStrategy: workspace(), configId: '8e356590-2fee-4f1f-b0e9-5cea43299887', nodeJSInstallationName: 'nodejs2211') {
dir("$WORKSPACE/ui/dasadmin") { dir("$WORKSPACE/ui/dasadmin") {
sh "npm install" sh "npm install"
sh "npm run build" sh "npm run build"