The error message you provided,
“Cannot resume build because FlowNode 19 for FlowHead 1 could not be loaded,”
is related to the durability setting used in Jenkins Pipelines. It suggests that you are using the PERFORMANCE_OPTIMIZED
durability setting, which is more prone to issues if Jenkins is not shut down cleanly.
The error message suggests switching to the MAX_SURVIVABILITY
durability setting. This setting is more robust and less likely to encounter issues related to Jenkins not shutting down cleanly. To change the durability setting for your pipeline, you can add the following line at the beginning of your pipeline script:
pipeline {
agent any
options {
durabilityHint 'MAX_SURVIVABILITY'
}
// ...
}
By setting the durabilityHint
to ‘MAX_SURVIVABILITY
’, you ensure that the pipeline is less susceptible to issues related to Jenkins not shutting down cleanly.