Interview Prep/Jenkins/Architecture, executors & JENKINS_HOME

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.

All Jenkins questions Roadmap: Jenkins

More on Architecture, executors & JENKINS_HOME