diff --git a/Jenkinsfile b/Jenkinsfile index ded0cc17..66f254ba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { } stage('编译UI') { when { - expression { params.publish_type == "ui" && params.publish_type == "all" } + expression { params.publish_type == "ui" || params.publish_type == "all" } } steps { nodejs(cacheLocationStrategy: workspace(), configId: '8e356590-2fee-4f1f-b0e9-5cea43299887', nodeJSInstallationName: 'nodejs202122') { @@ -24,7 +24,7 @@ pipeline { } stage('编译后端') { when { - expression { params.publish_type == "service" && params.publish_type == "all" } + expression { params.publish_type == "service" || params.publish_type == "all" } } steps { withMaven(globalMavenSettingsConfig: 'bab2e7fd-587c-4284-9bd8-6b97dfeb2fab', jdk: 'jdk17', maven: 'maven396') {