Jenkins无法更新Subversion插件

时间:2016-05-10 07:08:32

标签: svn plugins jenkins

我需要在Jenkins中更新我的Subversion PlugIn以用于当前的工作,但每次我尝试更新 CVS Subversion PlugIn 我收到一条失败通知,指出“进程无法访问该文件,因为它正被另一个进程使用”。我已经关闭了TortoiseSVN状态缓存,发现它导致了与其他版本类似的问题。

hudson.util.IOException2: Failed to dynamically deploy this plugin
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1317)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1116)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.nio.file.FileSystemException: C:\Program Files (x86)\Jenkins\plugins\subversion\WEB-INF\lib\antlr-runtime-3.4.jar: The process cannot access the file because it is being used by another process.

    at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
    at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
    at java.nio.file.Files.delete(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor274.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at hudson.Util.deleteFile(Util.java:239)
    at hudson.Util.deleteRecursive(Util.java:307)
    at hudson.Util.deleteContentsRecursive(Util.java:204)
    at hudson.Util.deleteRecursive(Util.java:298)
    at hudson.Util.deleteContentsRecursive(Util.java:204)
    at hudson.Util.deleteRecursive(Util.java:298)
    at hudson.Util.deleteContentsRecursive(Util.java:204)
    at hudson.Util.deleteRecursive(Util.java:298)
    at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:422)
    at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:129)
    at hudson.PluginManager.dynamicLoad(PluginManager.java:413)
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1313)
    ... 6 more

我尝试重新启动服务器但它似乎没有什么区别。关于这个问题的任何建议都将不胜感激。

1 个答案:

答案 0 :(得分:3)

这里显示了一些其他进程对文件antlr-runtime-3.4.jar的锁定。

Caused by: java.nio.file.FileSystemException: C:\Program Files (x86)\Jenkins\plugins\subversion\WEB-INF\lib\antlr-runtime-3.4.jar: The process cannot access the file because it is being used by another process.

您需要找出哪个进程锁定该文件,将其终止或使用“Unlocker”工具删除锁定(如果它不是关键进程)。