Interview Prep/Jenkins/Architecture, executors & JENKINS_HOME

What is `JENKINS_HOME` and what are its most important contents?

BeginnerConceptArchitecture, executors & JENKINS_HOME
Answer

It is the single directory holding all Jenkins state (default /var/jenkins_home in the official image, /var/lib/jenkins for packages).

Path Contents
config.xml Global configuration
jobs/<job>/config.xml Job definition
jobs/<job>/builds/<n>/ Build record, log, build.xml, test results
plugins/ .jpi files and exploded plugins
nodes/ Agent definitions
users/ User records and API tokens
credentials.xml Global credentials (encrypted)
secrets/ master.key, hudson.util.Secret, initialAdminPassword
workspace/ Workspaces of builds that ran on the built-in node
All Jenkins questions Roadmap: Jenkins

More on Architecture, executors & JENKINS_HOME