[英]Jenkins cannot access git
在Jenkins服務器崩潰后,我無法啟動我的項目構建。
我收到這個奇怪的消息。 有線索嗎?
hudson.plugins.git.GitException: Command "git fetch --tags --progress origin +refs/heads/master:refs/remotes/origin/master --prune" returned status code 128:
stdout:
stderr: error: object file .git/objects/10/f103eb6e4590be766e67ca961e65f5c4e6836c is empty
error: object file .git/objects/10/f103eb6e4590be766e67ca961e65f5c4e6836c is empty
fatal: loose object 10f103eb6e4590be766e67ca961e65f5c4e6836c (stored in .git/objects/10/f103eb6e4590be766e67ca961e65f5c4e6836c) is corrupt
fatal: The remote end hung up unexpectedly
有幾次相同。
有時@“Mukesh M”的回答可能有所幫助 - 這是一個不錯的方法。 在其他情況下,以下方法幫助了我幾次。
首先訪問/ var / jenkins_home / caches文件夾。 刪除git-hashes。 下一次開始工作將再次從git中檢索所有內容,以便作業再次順利運行。 所以省略git緩存。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.