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

@@ -0,0 +1,27 @@
pipeline {
agent any
parameters {
imageTag(
name: 'IMAGE_NAME',
description: '此处是 lessietest 命名空间内的镜像',
registry: 'https://uswccr.ccs.tencentyun.com',
image: 'lessietest/lessie-sourcing-agents',
credentialId: 'dxin_img_hub_auth',
filter: '.*',
defaultTag: 'latest',
verifySsl: true
)
}
stages {
stage('部署') {
steps {
script {
// 提取纯标签去掉附加的Label信息
def pureTag = params.IMAGE_NAME.split(' ')[0]
echo "开始部署镜像uswccr.ccs.tencentyun.com/lessietest/lessie-sourcing-agents:${pureTag}"
// 部署命令如kubectl、docker run等
}
}
}
}
}