-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Windows Server
When attempting to upgrade from 2.319.3 to 2.332.1, the updated version of Jenkins is not using the JENKINS_HOME value set in conf/context.xml. The instance is running as a Windows service using Apache Tomcat 9.
<Context>
<Environment name="JENKINS_HOME" value="C:\path_to_jenkins_home" type="java.lang.String"/>
...
</Context>
Instead, the default and initial value of JENKINS_HOME is being used (C:\users\someUser\.jenkins)
There is a need to use a different setting in the servlet.
- is duplicated by
-
JENKINS-68120 JENKINS_HOME variable ignored in tomcat context
-
- Closed
-
[JENKINS-68081] Configuring JENKINS_HOME in Tomcat context of the servlet
Description |
Original:
When attempting to upgrade from 2.319.3 to 2.332.1, the updated version of Jenkins is not using the JENKINS_HOME value set in conf/context.xml.
<Context> <Environment name="JENKINS_HOME" value="C:\path_to_jenkins_home" type="java.lang.String"/> ... </Context> Instead, the default and initial value of JENKINS_HOME is being used (C:\users\someUser\.jenkins) There is a need to use a different setting in the servlet. |
New:
When attempting to upgrade from 2.319.3 to 2.332.1, the updated version of Jenkins is not using the JENKINS_HOME value set in conf/context.xml. The instance is running as a Windows service using Apache Tomcat 9.
<Context> <Environment name="JENKINS_HOME" value="C:\path_to_jenkins_home" type="java.lang.String"/> ... </Context> Instead, the default and initial value of JENKINS_HOME is being used (C:\users\someUser\.jenkins) There is a need to use a different setting in the servlet. |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Link |
New:
This issue is duplicated by |
JNDI support was removed in jenkinsci/jenkins#6111, which I'm guessing is your problem here. You can instead use a Java system property (e.g. -DJENKINS_HOME=/path/to/home) (which you can set for Tomcat in the CATALINA_OPTS environment variable) or an environment variable of JENKINS_HOME).