zoukankan      html  css  js  c++  java
  • Jenkins 安装 ruby-runtime 出错

    C:Program Files (x86)Jenkinsplugins uby-runtimeWEB-INFlibclasses.jar: The process cannot access the file because it is being used by another process.

    Also: java.nio.file.FileSystemException: C:Program Files (x86)Jenkinsplugins uby-runtimeWEB-INFlibclasses.jar: 另一个程序正在使用此文件,进程无法访问。

    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.deleteIfExists(Unknown Source)
    at java.nio.file.Files.deleteIfExists(Unknown Source)
    at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
    Also: java.nio.file.FileSystemException: C:Program Files (x86)Jenkinsplugins uby-runtimeWEB-INFlibclasses.jar: 另一个程序正在使用此文件,进程无法访问。

    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.deleteIfExists(Unknown Source)
    at java.nio.file.Files.deleteIfExists(Unknown Source)
    at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)

    分析

    解决方案

    将 Jenkins 移动到无空格的安装目录

    步骤

    1. 停止 Jenkins 服务
    2. 拷贝 Jenkins 整个文件夹到新的目录,比如 C:Jenkins
    3. 修改注册表项 HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesJenkinsImagePath 为新的路径
    4. 启动 Jenkins 服务

    参考

  • 相关阅读:
    第十一周课程总结
    第十周学习总结
    第j九周学习总结暨第七周实验报告
    第八周学习总结暨第六周实验报告
    第七周学习总结暨第五周实验报告
    第六周学习总结暨第四周实验报告
    学习总结
    第十四周课程总结&实验报告
    第十三周课程总结
    第十三周课程总结 记事本
  • 原文地址:https://www.cnblogs.com/nehcdahc/p/13373021.html
Copyright © 2011-2022 走看看