This commit is contained in:
dxin
2025-10-22 11:25:07 +08:00
parent 6b900c4e36
commit a9a5b69d02
5 changed files with 213 additions and 45 deletions

View File

@@ -80,7 +80,7 @@ pipeline {
// 构建镜像,添加标签信息
sh """
docker build -t ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME}:${IMAGE_TAG} \
--label "git-branch='${formattedBranch}'" \
--label "git-branch='${params.Code_branch}'" \
--label "git-commit='${GIT_COMMIT_SHORT}'" \
--label "git-author='${GIT_AUTHOR}'" \
--label "git-message='${GIT_COMMIT_MSG}'" \