go - Jenkins GO运行失败,git 128

标签 go jenkins

伙计们,我正在尝试进行一些测试。盒子上的git配置似乎失败了吗?

在有人问之前正在运行git version 1.8.3.1 ...去版本1.13.1
在我的Mac和Linux上,本地版本通过了构建……但是在Jenkins中似乎失败了

go test -v ./... -tags=unit
go: bitbucket.org/xxxxxxx/yyyyyyy@v1.0.82 requires
    cloud.google.com/go/storage@v1.6.0 requires
    cloud.google.com/go@v0.53.0 requires
    cloud.google.com/go/bigquery@v1.3.0 requires
    golang.org/x/exp@v0.0.0-20191030013958-a1ab85dbe136: 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的版本

关于go - Jenkins GO运行失败,git 128,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60878331/

相关文章:

postgresql - 通过 pq 连接到 PostgreSQL 数据库返回 "bad connection"错误

Gorilla mux 删除或替换现有路由

go - 使用 Gorilla Mux 和标准 http.FileServer 的自定义 404

linux - 使用 Jenkins 在远程 linux 上创建用户

Go 的值方法和指针的方法有什么区别?

go - 使用类型查找映射解码通用 json

ruby - 显示因特定标签而失败的测试数量(Ruby、Cucumber、Jenkins)

jenkins - 提高速度 openCover

git - Jenkins 发布问题与 jgit

hudson - Jenkins/Hudson上传到Testflight