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

    参考

  • 相关阅读:
    FileReader读数据
    FileWriter写数据
    装饰者设计模式
    数据库连接池
    事务
    EL表达式
    console.log是异步的吗?
    使用i3wm时出现的若干问题的解决办法
    使用xmodmap修改键盘映射
    CentOS7 Minimal 安装后出现的若干问题解决办法
  • 原文地址:https://www.cnblogs.com/nehcdahc/p/13373021.html
Copyright © 2011-2022 走看看