赞
踩
问题
Jenkins升级后,拉取代码失败:
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://10.200.0.3/jr/kace/koca-cf.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: warning: no common commits remote: Enumerating objects: 123605, done. remote: Counting objects: 0% (1/123605) remote: Counting objects: 1% (1237/123605) remote: Counting objects: 2% (2473/123605) remote: Counting objects: 3% (3709/123605) remote: Counting objects: 4% (4945/123605) remote: Counting objects: 5% (6181/123605) remote: Counting objects: 6% (7417/123605) remote: Counting objects: 7% (8653/123605) remote: Counting objects: 8% (9889/123605) remote: Counting objects: 9% (11125/123605) remote: Counting objects: 10% (12361/123605) remote: Counting objects: 11% (13597/123605) remote: Counting objects: 12% (14833/123605) remote: Counting objects: 13% (16069/123605) remote: Counting objects: 14% (17305/123605) remote: Counting objects: 15% (18541/123605) remote: Counting objects: 16% (19777/123605) remote: Counting objects: 17% (21013/123605) remote: Counting objects: 18% (22249/123605) remote: Counting objects: 19% (23485/123605) remote: Counting objects: 20% (24721/123605) remote: Counting objects: 21% (25958/123605) remote: Counting objects: 22% (27194/123605) remote: Counting objects: 23% (28430/123605) remote: Counting objects: 24% (29666/123605) remote: Counting objects: 25% (30902/123605) remote: Counting objects: 26% (32138/123605) remote: Counting objects: 27% (33374/123605) remote: Counting objects: 28% (34610/123605) remote: Counting objects: 29% (35846/123605) remote: Counting objects: 30% (37082/123605) remote: Counting objects: 31% (38318/123605) remote: Counting objects: 32% (39554/123605) remote: Counting objects: 33% (40790/123605) remote: Counting objects: 34% (42026/123605) remote: Counting objects: 35% (43262/123605) remote: Counting objects: 36% (44498/123605) remote: Counting objects: 37% (45734/123605) remote: Counting objects: 38% (46970/123605) remote: Counting objects: 39% (48206/123605) remote: Counting objects: 40% (49442/123605)
原因
升级前后cache目录git-fetch缓存不一致造成的,去容器中删掉cache目录就行了如下,这个目录和workspace同级
解决办法
可能其他原因
参考文章:https://blog.csdn.net/u012440725/article/details/123041983
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。