Reputation: 350
I have a Jenkins setup looks like this:
agent.jar
files into a service, hence I do a systemctl restart jenkins-node
it will stop the agent, wget
the latest jar
file from controller, then start the agent. The jobs are running one of these 2 nodes.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