jenkins在尝试从git scm插件克隆新的git repo时删除现有的工作空间

jenkins在尝试从git scm插件克隆新的git repo时删除现有的工作空间,git,jenkins,Git,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’. Tri

我在詹金斯的工作日志中看到:

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
克隆远程Git存储库ssh://username@systemname.eu.company.com:29418/。
错误:无法清理工作区Java.io.IOException:无法删除“C:\Users\\GitRepositorys\reponame”。
尝试3次(最多3次),每次尝试之间等待0.1秒。
克隆远程repo“origin”Hudson.plugins.git.git时出错异常:
无法删除工作区
我们已收到上述错误,但它已删除了大多数文件,并且仅删除了未删除的活动文件。

jenkins作业配置中没有激活删除工作区或清理命令。

首先尝试查看是否有任何进程抢占这些文件(并阻止删除)。使用ctrl+F“查找流程”功能

有时,我必须重新启动从属服务器,以确保这些进程消失


然后重试作业,看看是否可以删除工作区。

Hi Von。我无法理解它为什么试图删除工作空间。@prakyathshetty不确定:这似乎是一个正在进行的bug(),将在Jenkins 2.7.x()中修复()。你使用的是什么版本的Jenkins?Jenkins 2.7.2版本,git插件3.0。1@prakyathshettyJenkins 2.46.3 LTS和Git插件3.3.0会更好吗?