簡體   English   中英

詹金斯無法訪問git

[英]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緩存。

在我的情況下,我做了以下

選擇Workspace,然后單擊Wipe Out Current Workspace。 這將刪除您的工作區。

現在只需啟動新版本即可。

詹金斯擦掉當前的工作區

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM