perf(ci): release coordinator builder executor
This commit is contained in:
Vendored
+8
-4
@@ -36,7 +36,7 @@ def environmentChoicesForJob(String jobBaseName) {
|
||||
|
||||
pipeline {
|
||||
// 总控流水线只识别变更并调度独立的服务 Job;实际 Maven、镜像和部署在 Jenkinsfile.service 中完成。
|
||||
agent { label 'java-builder' }
|
||||
agent none
|
||||
|
||||
options {
|
||||
disableConcurrentBuilds()
|
||||
@@ -69,6 +69,7 @@ pipeline {
|
||||
|
||||
stages {
|
||||
stage('确定构建范围') {
|
||||
agent { label 'java-builder' }
|
||||
steps {
|
||||
script {
|
||||
// 开发环境总控 Job 固定部署到 development,避免首次构建沿用 ENVIRONMENT 的默认 test 值。
|
||||
@@ -151,6 +152,11 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
cleanWs(deleteDirs: true, notFailBuild: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('生产环境部署确认(仅 production 执行)') {
|
||||
@@ -170,6 +176,7 @@ pipeline {
|
||||
expression { env.RESOLVED_ENVIRONMENT == 'test' && params.INITIALIZE_TEST_DATABASE }
|
||||
}
|
||||
}
|
||||
agent { label 'java-test' }
|
||||
steps {
|
||||
sh 'sh deploy/scripts/initialize-test-databases.sh'
|
||||
}
|
||||
@@ -225,7 +232,4 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always { cleanWs(deleteDirs: true, notFailBuild: true) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user