What is a workspace and where is it stored?
BeginnerConceptArchitecture, executors & JENKINS_HOME
Answer
The workspace is the directory on the agent where the build checks out code and runs commands: <agent workDir>/workspace/<job-path>. It persists between builds on static agents (which speeds incremental builds but leaks state), and disappears with the pod on Kubernetes agents. Concurrent builds of the same job get suffixed workspaces like myjob@2. Temporary script files live in myjob@tmp.
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 is `JENKINS_HOME` and what are its most important contents?BeginnerWhat happens if you lose the `secrets/` directory but keep `credentials.xml`?AdvancedHow does an agent communicate with the controller?Intermediate