发版测试

This commit is contained in:
谷成伟 2024-06-20 09:28:34 +08:00
parent 51c3a2a2f1
commit f679b9b7d1

8
Jenkinsfile vendored
View File

@ -1,6 +1,6 @@
pipeline {
parameters {
choice choices: ['全部', '前端', '后端'], name: 'build_type'
choice choices: ['all', 'ui', 'service'], description: 'all - 前端和后端 ; ui - 仅发版前端 ; service - 仅发版后端', name: 'publish_type'
}
agent any
stages {
@ -10,6 +10,9 @@ pipeline {
}
}
stage('编译UI') {
when {
expression { params.publish_type == "ui" && params.publish_type == "all" }
}
steps {
nodejs(cacheLocationStrategy: workspace(), configId: '8e356590-2fee-4f1f-b0e9-5cea43299887', nodeJSInstallationName: 'nodejs202122') {
dir("$WORKSPACE/ui/dasadmin") {
@ -20,6 +23,9 @@ pipeline {
}
}
stage('编译后端') {
when {
expression { params.publish_type == "service" && params.publish_type == "all" }
}
steps {
withMaven(globalMavenSettingsConfig: 'bab2e7fd-587c-4284-9bd8-6b97dfeb2fab', jdk: 'jdk17', maven: 'maven396') {
dir("$WORKSPACE/das") {