From 53e24627253975c44c3d74c31c62b5877d55036b Mon Sep 17 00:00:00 2001 From: dxin Date: Sat, 18 Oct 2025 12:19:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCM/essie_sourcing_agents.groovy | 37 -------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 SCM/essie_sourcing_agents.groovy diff --git a/SCM/essie_sourcing_agents.groovy b/SCM/essie_sourcing_agents.groovy deleted file mode 100644 index 150286c..0000000 --- a/SCM/essie_sourcing_agents.groovy +++ /dev/null @@ -1,37 +0,0 @@ -pipeline { - agent any - stages { - stage('拉取镜像') { - steps { - script { - // 从选择的参数中提取标签(如从 "tag→分支:xxx..." 中取前半部分) - def imageTag = params.SELECTED_IMAGE.split(" → ")[0].trim() - def fullImage = "uswccr.ccs.tencentyun.com/lessietest/lessie-sourcing-agents:${imageTag}" - - // 登录仓库并拉取镜像 - withCredentials([usernamePassword( - credentialsId: 'dxin_img_hub_auth', - usernameVariable: 'USERNAME', - passwordVariable: 'PASSWORD' - )]) { - sh """ - echo "${PASSWORD}" | docker login uswccr.ccs.tencentyun.com -u ${USERNAME} --password-stdin - docker pull ${fullImage} - """ - } - } - } - } - stage('部署镜像') { - steps { - script { - def imageTag = params.SELECTED_IMAGE.split(" → ")[0].trim() - def fullImage = "uswccr.ccs.tencentyun.com/lessietest/lessie-sourcing-agents:${imageTag}" - echo "正在部署镜像:${fullImage}" - // 添加你的部署命令(如 docker run、kubectl apply 等) - // sh "docker run -d --name my-app ${fullImage}" - } - } - } - } -} \ No newline at end of file