From 7911a1354200bb4203f81978f4c8994c14e00cc5 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 18 Jun 2026 14:15:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20checkout=20=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=20Git=20URL=EF=BC=8C=E4=BF=AE=E5=A4=8D=20scm?= =?UTF-8?q?=20=E4=B8=8D=E5=8F=AF=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 内嵌脚本模式下 scm 对象不可用,改为 credentials 绑定 git-token。 Co-Authored-By: Claude --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5f68993..5f2f35b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,7 +34,9 @@ pipeline { $class: 'GitSCM', branches: [[name: 'main']], extensions: [[$class: 'CleanBeforeCheckout']], - userRemoteConfigs: scm.userRemoteConfigs + userRemoteConfigs: [[ + url: "https://xuqinmin12:${GIT_TOKEN}@xuqinmin.com/xuqmGroup/XuqmGroup-Server.git" + ]] ]) } }