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 |
More on Architecture, executors & JENKINS_HOME
What are the main components of a Jenkins installation?BeginnerWhat is the difference between a node, an agent and an executor?BeginnerWhy should the built-in node have 0 executors?BeginnerWhat happens if you lose the `secrets/` directory but keep `credentials.xml`?AdvancedHow does an agent communicate with the controller?IntermediateWhat is the build queue and what can keep an item waiting in it?Intermediate