On Windows, you'll find Jenkins Home to be in one of two places, assuming the JENKINS_HOME
variable hasn't set it to something other than the defaults.
Two Jenkins Home Locations
If you installed the jenkins.war
file on Tomcat or run it through the embedded Jetty server, Jenkins Home will be a folder named .jenkins
in the home folder of the user that starts Jenkins. If multiple users run Jenkins, each one will have a separate Jenkins Home with their own configuration, which is why you should always run the CI/CD instance with the same user account.
<userhome>\.jenkins
I have a user called Owner which runs Jenkins so the actual Jenkins Home location is:
C:\Users\Owner\.jenkins
If you used the Jenkins installer for Windows, the Jenkins Home location is buried a little bit deeper on the filesystem. It will be at:
C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins
You can change the Jenkins Home location by simply adding and editing the JENKINS_HOME environment or systems variable
Jenkins Home on Ubuntu
I know it's not the original ask, but for those with Jenkins on Ubuntu, the home folder is:
var\lib\jenkins
JENKINS_HOME
if run jenkins using jenkins.war (not as a service) – Monad