簡體   English   中英

當嘗試從git scm插件克隆新的git repo時,jenkins刪除現有的工作空間

[英]jenkins deletes existing work space ,when trying to clone new git repo from git scm plugin

我在Jenkins作業日志中看到:

Cloning the remote Git repository ssh://username@systemname.eu.company.com:29418/<repo-name>.
ERROR: Failed to clean the workspace Java.io.IOException: Unable to delete ‘C:\Users\<usersname>\GitRepositorys\reponame’. 
  Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
Error cloning remote repo ‘origin’ Hudson.plugins.git.GitException:
  Failed to delete workspace

我們遇到了上述錯誤,但是它已經刪除了大多數文件,只有未刪除處於活動狀態的文件。
在jenkins作業配置中,沒有刪除工作空間或清理命令處於活動狀態。

首先嘗試查看是否有任何進程搶占那些文件(並阻止刪除)。 使用Process Explorer ctrl + F “查找過程”功能。

有時,我必須重新啟動從屬服務器,以確保這些進程消失。

然后重試您的作業,然后查看是否可以刪除該工作區。

暫無
暫無

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

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