发版测试
This commit is contained in:
parent
51c3a2a2f1
commit
f679b9b7d1
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user