签入版本

This commit is contained in:
gitadmin
2025-09-21 19:52:30 +08:00
commit 9a522f4284
46 changed files with 15459 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
package com.constants
/**
* 配置常量类
* 集中管理所有配置常量和默认值,避免硬编码
*/
class ConfigConstants {
// 环境配置默认值
static final DEFAULT_ENV_CONFIG = [
masterProfiles: ['', 'uat', 'prod'],
Profiles : ['', 'dev'],
jobConfigFile : "xiaomayiConfig.yml",
docker : [
base_image: "192.168.10.102:8001/xiaomayi-base/jdk:17.0.16-rocky8-dos",
build_args: "--no-cache"
],
maven : [
skip_tests: true,
goals : "clean package"
],
dev : [
health_check_timeout: 5,
rollback_enabled : true,
health_check_enabled: true
]
]
// 分支类型与profile映射
static final BRANCH_PROFILES = [
'master' : ['', 'uat', 'prod'],
'test' : ['', 'test'],
'dev' : ['', 'dev'],
'feature': ['', 'test', 'dev']
]
// 默认profile映射
static final DEFAULT_PROFILES = [
'master' : 'prod',
'test' : 'test',
'dev' : 'dev',
'feature': 'test'
]
// SSH连接配置
static final SSH_CONFIG = [
strictHostKeyChecking: "no",
connectTimeout : "30",
serverAliveInterval : 60,
]
}