What is the difference between `/restart`, `/safeRestart`, `/quietDown` and `/safeExit`?
IntermediateConceptArchitecture, executors & JENKINS_HOME
Answer
| Endpoint | Behaviour |
|---|---|
/restart |
Restarts immediately, interrupting builds (pipelines try to resume) |
/safeRestart |
Stops starting new builds, waits for running ones, then restarts |
/quietDown |
Prepare for shutdown: no new builds start; /cancelQuietDown reverts |
/exit and /safeExit |
Shut down now, or after builds finish |
On Kubernetes, prefer safeExit before deleting the controller pod, or rely on graceful termination with a long terminationGracePeriodSeconds.
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