1-27同步

This commit is contained in:
2026-01-27 18:21:54 +08:00
parent f71063450b
commit 193af53735
8 changed files with 511 additions and 40 deletions

View File

@@ -94,6 +94,9 @@ pipeline {
def formattedBranch = branchName.replace('/', '-').replace('_', '-') // 替换分支名中的/和_为-
// 构建时间格式202510181215年-月-日-时-分,无分隔符)
def buildTime = sh(script: 'date +%Y%m%d%H%M', returnStdout: true).trim()
// 当前时间格式YYYY-MM-DD HH:MM:SS
env.currentTime = sh(script: 'date "+%Y-%m-%d %H:%M:%S"', returnStdout: true).trim()
def defaultTag = "v${buildNumber}_${formattedBranch}_${GIT_COMMIT_SHORT}_${buildTime}"
def customTag = params.CUSTOM_TAG?.trim()
@@ -237,7 +240,7 @@ pipeline {
lark (
robot: "${LARK_ROBOT}",
type: "CARD",
title: "flymoon-agent镜像构建成功",
title: "${IMAGE_NAME}镜像构建成功",
text: [
"📅 **构建时间**: ${currentTime}",
"📋 **任务名称**: [${JOB_NAME}](${JOB_URL})",
@@ -368,7 +371,7 @@ pipeline {
lark (
robot: "${LARK_ROBOT}",
type: "CARD",
title: "flymoon-agent镜像构建失败",
title: "${IMAGE_NAME}镜像构建失败",
text: [
"📅 **构建时间**: ${currentTime}",
"📋 **任务名称**: [${JOB_NAME}](${JOB_URL})",
@@ -387,7 +390,7 @@ pipeline {
lark (
robot: "${LARK_ROBOT}",
type: "CARD",
title: "apex镜像构建取消",
title: "${IMAGE_NAME}镜像构建取消",
text: [
"📅 **构建时间**: ${currentTime}",
"📋 **任务名称**: [${JOB_NAME}](${JOB_URL})",