What is a Jenkins pipeline durability setting?
AdvancedConceptJenkins
Answer
Durability controls how often the pipeline's state is flushed to disk. MAX_SURVIVABILITY (default) writes on every step so a restart resumes the build exactly; SURVIVABLE_NONATOMIC and PERFORMANCE_OPTIMIZED write less, which cuts disk I/O significantly for pipelines with many steps but means a controller crash or hard restart can fail running builds.
options { durabilityHint('PERFORMANCE_OPTIMIZED') }
We use performance-optimised for fast CI jobs on busy controllers, and keep the default for long-running release pipelines.
More on Jenkins
What is Jenkins and how is its architecture organised?BeginnerWhat are executors, nodes and labels in Jenkins?IntermediateWhy should you not run builds on the Jenkins controller?BeginnerHow do inbound (JNLP/WebSocket) and SSH agents connect to the controller?IntermediateWhat is a Jenkinsfile and where does it live?BeginnerDeclarative versus Scripted Pipeline: what are the differences?Intermediate