fix(ci): checkout 改为显式 Git URL,修复 scm 不可用问题

内嵌脚本模式下 scm 对象不可用,改为 credentials 绑定 git-token。

Co-Authored-By: Claude <noreply@anthropic.com>
这个提交包含在:
XuqmGroup 2026-06-18 14:15:22 +08:00
父节点 7cc0962df2
当前提交 7911a13542

4
Jenkinsfile vendored
查看文件

@ -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"
]]
])
}
}