Jenkins:更改Windows中的默认日志文件位置

时间:2017-08-04 07:32:52

标签: jenkins

我需要在jenkins home(安装)目录之外更改jenkins的日志文件的位置。我检查了jenkins.xml文件,但没有找到任何要设置的参数。

通过一些文章,但他们建议创建符号链接。

如果有人已经这样做,请提出建议。

1 个答案:

答案 0 :(得分:0)

您可以通过更改Client session timed out, have not heard from server in 6004ms for sessionid 0x0, closing socket connection and attempting reconnect [2017-08-04 15:49:37,494] INFO Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=6000 watcher=org.I0Itec.zkclient.ZkClient@158da8e (org.apache.zookeeper.ZooKeeper) [2017-08-04 15:49:37,524] INFO Waiting for keeper state SyncConnected (org.I0Itec.zkclient.ZkClient) [2017-08-04 15:49:37,527] INFO Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2017-08-04 15:49:37,533] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn) java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141) [2017-08-04 15:49:38,637] INFO Opening socket connection to server 127.0.0.1/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2017-08-04 15:49:38,639] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn) java.net.ConnectException: Connection refused 中日志的默认位置来更改日志位置。默认情况下,日志存储在%JENKINS_HOME%/jenkins.xml%JENKINS_HOME%/jenkins.out