更改 BUILD_env 为 NAME_SPACES
This commit is contained in:
@@ -18,9 +18,9 @@ pipeline {
|
||||
listSize: "1"
|
||||
)
|
||||
choice(
|
||||
name: 'BUILD_env',
|
||||
name: 'NAME_SPACES',
|
||||
choices: ['sit', 'test', 'prod'],
|
||||
description: '选择构建的环境配置:'
|
||||
description: '选择存放镜像的仓库命名空间:'
|
||||
)
|
||||
string(
|
||||
name: 'CUSTOM_TAG',
|
||||
@@ -30,7 +30,7 @@ pipeline {
|
||||
}
|
||||
environment {
|
||||
REGISTRY = "uswccr.ccs.tencentyun.com" // 镜像仓库地址
|
||||
NAMESPACE = "lessie${params.BUILD_env}" // 命名空间根据choices的选择拼接
|
||||
NAMESPACE = "lessie${params.NAME_SPACES}" // 命名空间根据choices的选择拼接
|
||||
IMAGE_NAME = "flymoon-admin" // 镜像名(固定前缀)
|
||||
CREDENTIALS_ID = "dxin_img_hub_auth" // 容器仓库凭证ID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user