签入版本
This commit is contained in:
@@ -6,25 +6,74 @@ common:
|
||||
registrys:
|
||||
# 默认仓库配置 - 内部私有仓库
|
||||
default:
|
||||
# 内部私有仓库地址
|
||||
# 内部私有仓库地址 - 企业内部部署的Harbor或Registry地址
|
||||
registry: "192.168.10.102:8001"
|
||||
# Jenkins凭证ID,用于仓库认证
|
||||
# Jenkins凭证ID - 用于仓库认证的凭据ID
|
||||
registryCredential: "xiaomayi-hub-credentials"
|
||||
# 仓库中的项目/命名空间名称
|
||||
# 仓库中的项目/命名空间名称 - 镜像存放的项目空间
|
||||
registryProject: "xiaomayi"
|
||||
# 仓库类型 - 仓库的技术类型(harbor、acr、dockerhub等)
|
||||
registryType: "harbor"
|
||||
# 应用部署基础镜像
|
||||
registryImage: "jdk:17.0.16-ubuntu22-dos"
|
||||
|
||||
# 阿里云ACR仓库配置 - 云上仓库,用于生产环境或特定场景
|
||||
acr:
|
||||
# 阿里云VPC内网地址,网络性能更优
|
||||
aliyun:
|
||||
# 阿里云VPC内网地址 - 阿里云容器镜像服务的VPC内网地址,网络性能更优
|
||||
registry: "registry-vpc.cn-hangzhou.aliyuncs.com"
|
||||
# 阿里云仓库认证凭证
|
||||
# 阿里云仓库认证凭证 - 阿里云访问凭据的Jenkins ID
|
||||
registryCredential: "aliyun-hub-credentials"
|
||||
# 阿里云仓库项目名称
|
||||
registryProject: "xiaomayi"
|
||||
# 阿里云仓库项目名称 - 阿里云ACR中的命名空间
|
||||
registryProject: "xiaomayi-base"
|
||||
# 仓库类型 - 阿里云容器镜像服务
|
||||
registryType: "acr"
|
||||
# 应用部署基础镜像
|
||||
registryImage: "jdk:17.0.16-ubuntu22-dos"
|
||||
# Docker Hub配置 - 官方Docker仓库,用于公开镜像
|
||||
dockerhub:
|
||||
# Docker Hub地址 - 官方Docker仓库地址
|
||||
registry: "index.docker.io"
|
||||
# Docker Hub认证凭证 - Docker Hub账号的Jenkins凭据ID
|
||||
registryCredential: "dockerhub-credentials"
|
||||
# Docker Hub项目名称 - 用户名或组织名
|
||||
registryProject: "xiaomayi-base"
|
||||
# 仓库类型 - 官方Docker仓库
|
||||
registryType: "dockerhub"
|
||||
# 应用部署基础镜像
|
||||
registryImage: "jdk:17.0.16-ubuntu22-dos"
|
||||
|
||||
# 钉钉消息
|
||||
dingtalk:
|
||||
# 凭证ID - Jenkins中存储的DingTalk认证凭据ID
|
||||
credentialsId: "jenkins-dingtalk-robot"
|
||||
|
||||
# 通知配置 - 构建结果通知设置
|
||||
notification:
|
||||
# 构建成功通知配置
|
||||
success:
|
||||
# 收件人列表 - 成功时通知的邮箱地址
|
||||
recipients: ["xiaomayicloud@163.com", "575073565@qq.com", "txwz2006@126.com"]
|
||||
# 通知渠道 - 使用的通知方式
|
||||
channels: ["email", "dingtalk", "slack"]
|
||||
# 构建失败通知配置
|
||||
failure:
|
||||
# 收件人列表 - 失败时通知的邮箱地址
|
||||
recipients: ["xiaomayicloud@163.com"]
|
||||
# 通知渠道 - 失败时使用的通知方式
|
||||
channels: ["email", "dingtalk", "slack", "sms"]
|
||||
# 构建不稳定通知配置
|
||||
unstable:
|
||||
# 收件人列表 - 不稳定时通知的邮箱地址
|
||||
recipients: ["xiaomayicloud@163.com"]
|
||||
# 通知渠道 - 不稳定时使用的通知方式
|
||||
channels: ["email", "dingtalk"]
|
||||
|
||||
# 构建策略 - 构建过程的策略配置
|
||||
buildStrategy:
|
||||
retryCount: 3 # 构建失败重试次数
|
||||
timeoutMinutes: 60 # 构建超时时间(分钟)
|
||||
cleanupWorkspace: true # 构建完成后是否清理工作空间
|
||||
enableCaching: true # 是否启用Docker构建缓存
|
||||
|
||||
# 部署相关配置
|
||||
deployScript: "deploy.sh" # 部署执行的shell脚本文件名
|
||||
|
||||
Reference in New Issue
Block a user