timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-68313] Strange environment JENKINS_WEBROOT for default CentOS installation #1968

Open timja opened 2 years ago

timja commented 2 years ago

I have default installation of Jenkins for RedHat related OS.

Excerpt from the /etc/systemd/system/jenkins.service file:

Environment="JENKINS_WEBROOT=%C/jenkins/war

After systemctl start jenkins ps command shows me:

jenkins   7128  0.2  9.7 16923192 3180692 ?    Ssl  Apr19   2:53 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=%C/jenkins/war --httpPort=8080 

And the content ~jenkins directory:

# ls -l ~jenkins
total 32
drwxr-xr-x.  3 jenkins jenkins   21 Apr 19 13:12 %C 
...

Is this a typo or should %C be converted to something?

 

Of course, I will change it, because I have to adjust my Jenkins installation.

 

OS: CentOS Linux release 7.9.2009 (Core)

systemd: 219-78.el7_9.5


Originally reported by dracorp, imported from: Strange environment JENKINS_WEBROOT for default CentOS installation
  • status: Open
  • priority: Trivial
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 2 years ago

dracorp:

There are a few https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Specifiers which are not resolved by systemd:

Failed to resolve unit specifiers on "%h", ignoring: Operation not supported 

Also the %C is not resolved.

timja commented 2 years ago

basil:

We might accept a patch to jenkinsci/packaging, but we are not going to go out of our way to support CentOS 7.