更改 BUILD_env 为 NAME_SPACES

This commit is contained in:
dxin
2025-10-30 15:00:58 +08:00
parent 275d01d858
commit b9f7ef980b
11 changed files with 411 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ pipeline {
listSize: "1"
)
choice(
name: 'BUILD_env',
name: 'NAME_SPACES',
choices: ['sit', 'test', 'prod'],
description: '选择存放镜像的仓库命名空间:'
)
@@ -29,7 +29,7 @@ pipeline {
}
environment {
REGISTRY = "uswccr.ccs.tencentyun.com" // 镜像仓库地址
NAMESPACE = "lessie${params.BUILD_env}" // 命名空间根据choices的选择拼接
NAMESPACE = "lessie${params.NAME_SPACES}" // 命名空间根据choices的选择拼接
IMAGE_NAME = "go_lessie-sourcing-api" // 镜像名(固定前缀)
CREDENTIALS_ID = "dxin_img_hub_auth" // 容器仓库凭证ID
}