During jenkins upgrades, the jenkins service is restarted for various tasks. This can result in jobs starting automatically, and also jobs then being disconnected as the jenkins service restarts.
It may be possible to temporarily disable all jobs via a groovy script, or init.groovy for the run of the playbook. Then when an upgrade is complete, enable all jobs.
During jenkins upgrades, the jenkins service is restarted for various tasks. This can result in jobs starting automatically, and also jobs then being disconnected as the jenkins service restarts.
It may be possible to temporarily disable all jobs via a groovy script, or init.groovy for the run of the playbook. Then when an upgrade is complete, enable all jobs.