Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 828650

Summary: dev-util/jenkins-bin: jenkins.service unit using system java
Product: Gentoo Linux Reporter: Samuel Bernardo <samuelbernardo.mail>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: UNCONFIRMED ---    
Severity: enhancement CC: graaff, jstein
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---

Description Samuel Bernardo 2021-12-09 23:48:27 UTC
As a suggestion, would be better to avoid defining in jenkins.service the ExecStart with /usr/bin/java, but instead use only java, so it can be override by PATH definition to use another java version if required. I just define a drop-in like the following, but doesn't work because is not possible to override ExecStart:

ExecStart=java ${JENKINS_JAVA_OPTIONS} ...
Comment 1 Samuel Bernardo 2022-01-19 18:18:01 UTC
Jenkins service only starts when systemd service type is "simple".
Comment 2 Samuel Bernardo 2022-01-26 00:10:23 UTC
I saw this approach to define jenkins.service where is possible to define the required environment variables to set the preferred java version to use with jenkins:
Comment 3 Samuel Bernardo 2022-02-14 00:50:02 UTC
Created the following PR: