Darwick
Darwick

Reputation: 350

Restart Jenkins controller and nodes in pipeline run

I have a Jenkins setup looks like this:

What I would like to achieve to write a pipeline what will do an apt dist-upgrade every day on the controller and in the nodes. This is working fine until a new version of Jenkins is released. When it is, the upgrade process will do a systemctl restart jenkins and then it will crush the running pipeline, no matter the job is not running on the controller. Moreover, if I do a systemctl restart jenkins-node in the agents, then the agent where the build is on going will crush as well. Is there a way to make the pipeline job active during Jenkins service restarts?

Upvotes: -1

Views: 19

Answers (0)

Related Questions