2017-06-05 34 views
2

我在詹金斯作業日誌時看到:詹金斯刪除現有的工作空間,試圖克隆從git的SCM插件新的git回購

Cloning the remote Git repository ssh://[email protected]: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作業配置中沒有刪除工作區或清理命令處於活動狀態。

回答

0

先試試看是否有任何進程搶佔這些文件(並阻止刪除)。使用Process Explorerctrl + F「查找過程」功能。

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

然後重試您的工作,然後查看是否可以刪除工作空間。

+0

Hi Von。我無法理解爲什麼它試圖刪除工作空間。 –

+0

@prakyathshetty不知道:這似乎是一個進展中的錯誤(https://issues.jenkins-ci.org/browse/JENKINS-15852),這將在Jenkins 2.7.x(https://問題。 jenkins-ci.org/browse/JENKINS-22795)。你使用的是什麼版本的詹金斯? – VonC

+0

jenkins 2.7.2版本,git插件3.0.1 –