优化
This commit is contained in:
Vendored
+19
@@ -369,6 +369,25 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('数据库结构只读门禁') {
|
||||
agent { label 'java-builder' }
|
||||
steps {
|
||||
script {
|
||||
String credentialId = "firstleg-${env.RESOLVED_ENVIRONMENT}-schema-readonly"
|
||||
withCredentials([file(credentialsId: credentialId, variable: 'SCHEMA_CHECK_ENV_FILE')]) {
|
||||
sh '''
|
||||
set -eu
|
||||
set -a
|
||||
. "$SCHEMA_CHECK_ENV_FILE"
|
||||
set +a
|
||||
test "${SCHEMA_CHECK_READ_ONLY:-}" = "true"
|
||||
node scripts/database-schema-contract.mjs --region BOTH
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('统一 Maven 测试门禁') {
|
||||
when {
|
||||
expression { env.NO_SERVICE_CHANGE != 'true' && !params.SKIP_TESTS }
|
||||
|
||||
Reference in New Issue
Block a user