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 服务

    参考

  • 相关阅读:
    编译安装linux内核步骤
    怎样在github上协同开发
    在JSP里使用CKEditor和CKFinder
    tomcat结合nginx使用小结
    JAVA学习笔记——(五)
    JAVA学习笔记——(四)
    JAVA学习笔记——(三)
    JAVA学习笔记——(二)
    JAVA学习笔记——(一)
    ansible
  • 原文地址:https://www.cnblogs.com/nehcdahc/p/13373021.html
Copyright © 2011-2022 走看看