Install CloudBees Jenkins as a Service with a Specified Java JDK on Linux

Article ID:205167740
1 minute readKnowledge base

Issue

Installing CloudBees Jenkins Enterprise as a service with a specified Java JDK on Linux

Environment

Jenkins

Resolution

Programs started using service do not inherit the environment variables set in the shell’s path. You will need to modify /etc/default/Jenkins or /etc/sysconfig/jenkins (depending on the Linux distribution) to change the Java it uses. The Jenkins_Home location can be set in this file also.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.