We have a Jenkins pipeline with several stages (pipeline as code). One of these stages creates ~40-50 downstream jobs and starts them in a parallel step. Unfortunatelly our jenkins master reboots every night. After this reboot every job in the queue is lost and the currently running downstream jobs are stopped with an error. After a reconnect of the child nodes the pipeline is in resume state (=> console output: resuming build) but nothing happens.
Now I have following questions:
Just in each job that you use in the flow choose "don't not allow the pipeline to resume if the master restarts". In such matter this issue will not happen (with resume state).
options {
disableResume()
}
As solution to resuming - use some "queue" checker. For example:
Or use some SQS queue if that is in AWS...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With