登录
首页 >  Golang >  Go问答

Jenkins运行失败,出现git错误码128

来源:stackoverflow

时间:2024-02-25 12:45:20 254浏览 收藏

一分耕耘,一分收获!既然都打开这篇《Jenkins运行失败,出现git错误码128》,就坚持看下去,学下去吧!本文主要会给大家讲到等等知识点,如果大家对本文有好的建议或者看到有不足之处,非常欢迎大家积极提出!在后续文章我会继续更新Golang相关的内容,希望对大家都有所帮助!

问题内容

各位,我正在尝试运行一些 go 测试。盒子上的 git 配置好像失败了?

在有人询问之前我正在运行 git 版本 1.8.3.1...转到版本 1.13.1

在我的 mac 和 linux 上为我本地构建了 pass...但在 jenkins 中似乎失败了

go test -v ./... -tags=unit
go: bitbucket.org/xxxxxxx/[email protected] requires
    cloud.google.com/go/[email protected] requires
    cloud.google.com/[email protected] requires
    cloud.google.com/go/[email protected] requires
    golang.org/x/[email protected]: invalid version: git fetch --unshallow -f https://go.googlesource.com/exp in /var/lib/jenkins/go/pkg/mod/cache/vcs/879ce674f4d9f0a3a3f207a6503e782bb2113f1a3d0c1f8049cc523b96d9aa9e: exit status 128:
    fatal: git fetch-pack: expected shallow list
make[1]: *** [unit-test] Error 1
make[1]: Leaving directory `/var/lib/jenkins/workspace/xxxxxx/yyyyy'
make: *** [test] Error 2
Build step 'Execute shell' marked build as failure
[Slack Notifications] found #1 as previous completed, non-aborted build
[Slack Notifications] will send OnEveryFailureNotification because build matches and user preferences allow it
Finished: FAILURE

解决方案


解决方案很简单,在 GCP 中提高 git 的版本

好了,本文到此结束,带大家了解了《Jenkins运行失败,出现git错误码128》,希望本文对你有所帮助!关注golang学习网公众号,给大家分享更多Golang知识!

声明:本文转载于:stackoverflow 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>