如何在 Jenkins 中签出 Bitbucket Git-LFS 存储库?

2024-01-08

我在 Bitbucket 服务器上安装了 Git LFS,并且可以将其克隆到我的 Mac 上,因为我是所有者。

现在我正在尝试进行设置,以便 Jenkins 作业可以克隆存储库,等等我的 SCM 部分

Repository URL: [email protected] /cdn-cgi/l/email-protection:user/path/repo.git
Credentials: uernamePwCreds

它可以很好地访问存储库,但是当它尝试签出 Git-LFS 文件时,会出现以下访问错误。请参阅权限被拒绝(公钥)最后一行错误。

FATAL: Could not checkout 104e35fb26dc1d3ed1689523cccb6e97829c0feb
hudson.plugins.git.GitException: Command "git checkout -f 104e35fb26dc1d3ed1689523cccb6e97829c0feb" returned status code 128:
stdout: 
stderr: Downloading MarcomLite/lib/jets3t-0.6.1/cockpit-0.6.1.jar (144 KB)
Error downloading object: MarcomLite/lib/jets3t-0.6.1/cockpit-0.6.1.jar (716be41): Smudge error: Error downloading MarcomLite/lib/jets3t-0.6.1/cockpit-0.6.1.jar (716be4107b362e413dc1ae29dc88e9b79e680def2c725ecc2d73268c4ea66e75): batch request: Permission denied (publickey).: exit status 255

如何设置“Git-LFS 特定”级别身份验证?

我现在不想使用 Jenkinsfile。


尝试在您的作业的 SCM 配置的 Git 部分中添加“其他行为”->“Git LFS pull after checkout”。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在 Jenkins 中签出 Bitbucket Git-LFS 存储库? 的相关文章

随机推荐