关于jenkins的double check的问题

发布时间:2020-04-13 15:43:52编辑:admin阅读(2354)

    一、概述

    jenkins启动之后会在home目录下生成一个".owner"文件,里面标识了本次jenkins实例的唯一标识,文件格式如下:

    47707180 contextPath="/jenkins" at 25@MYLINUX
    但是如果你可能会遇到下面的错误
    Jenkins detected that you appear to be running more than one instance of Jenkins that share the same home directory '/data/jenkins/home’. This greatly confuses Jenkins and you will likely experience strange behaviors, so please correct the situation.
    
    This Jenkins:    723777919 contextPath="" at 25@MYLINUX
    Other Jenkins:    47707180 contextPath="/jenkins" at 25@MYLINUX

    当然,可以每次点击ignore忽略这个警告,但是每次出现这个问题的时候,就比较麻烦了。

     

    二、解决

    直接删除".owner"文件,登录时,先忽略一次。退出再登录,就正常了。

    重新登录,它会生成新的".owner"文件。

     

     

    本文参考链接:

    https://my.oschina.net/xueyi28/blog/1541704


关键字