微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

关于多个Jenkins实例共享同一个工作目录的问题

问题描述

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

This Jenkins:    1612182264 contextpath="" at 44906@xx-xxx-tmp00.gz01.diditaxi.com

有可能会遇到如下错误

Jenkins detected that you appear to be running more than one instance of Jenkins that share the same home directory '/home/apache-tomcat-8.5.73/work’. This greatly confuses Jenkins and you will likely experience strange behaviors, so please correct the situation.



This Jenkins:    1612182264 contextpath="" at 44906@xx-xxx-tmp00.gz01.diditaxi.com

Other Jenkins:    2144180199 contextpath="/jenkins-new" at 44906@xx-xxx-tmp00.gz01.diditaxi.com

2.解决方

2.1 临时解决方

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

2.2 永久解决方

直接删除".owner"文件

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

原文地址:https://cloud.tencent.com/developer/article/1941883

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐