Hello,
I recently upgraded Jenkins from 2.263.4/2.303.3 to 2.332.2 on three
CentOS 7 machines, using the official
jenkins.io packages from the
redhat-stable repository.
While Jenkins (since years!) always saved its log as /var/log
/jenkins/jenkins.log, now it sends all log messages to syslog
(/var/log/message) instead.
Was this an expected change?
What's more, I also noticed that a "%C" directory has been created
in Jenkins' home which only contains a jenkins/war subdir and the
contents I list below.
In the systemd service definition
(/usr/lib/systemd/system/jenkins.service) indeed I now see:
--------------------
# Location of the exploded WAR
Environment="JENKINS_WEBROOT=%C/jenkins/war"
# Location of the Jenkins log. By default, systemd-journald(8) is
used.
#Environment="JENKINS_LOG=%L/jenkins/jenkins.log"
--------------------
I tried performing a clean install on a fresh VM and the result is
the same.
Is this a bug in the official Jenkins packages?
I suppose %C and %L were meant to be something else...
Can I safely change this configuration?
Can anyone please help me?
Thanks.
Here is the %C dir content:
# ls -1F /var/lib/jenkins/%C/jenkins/war/
bootstrap/
ColorFormatter.class
css/
executable/
favicon.ico
help/
images/
JNLPMain.class
jsbundles/
LogFileOutputStream$1.class
LogFileOutputStream.class
Main.class
MainDialog.class
Main$FileAndDescription.class
META-INF/
robots.txt
scripts/
WEB-INF/
winstone.jar
--
Kind regards,
Marco