Branch: refs/heads/master Home: https://github.com/jenkinsci/libvirt-agent-plugin Commit: d3e23601dec49b11bf277411ae92025972b1bda9 https://github.com/jenkinsci/libvirt-agent-plugin/commit/d3e23601dec49b11bf277411ae92025972b1bda9 Author: Michael Jeanson <mjean...@efficios.com> Date: 2024-03-19 (Tue, 19 Mar 2024)
Changed paths: R src/main/java/hudson/plugins/libvirt/LibvirtRunListener.java Log Message: ----------- Fix: reboot twice after Run When a node is configured with "Reboot this agent after each build" it reboots twice at the end of a Run. This was introduced in commit "JENKINS-50552: Fix triggering snapshot reverts" which implemented the TaskListener.taskCompleted and TaskListener.taskCompletedWithProblems methods in VirtualMachineSlaveComputer that will both reboot the node at the end of a Task when the node is configured to. The LibvirtRunListener onFinalized method was kept which similarly reboots the node at the end of a Run. The issue is that a Run is composed of a single Task which results in a reboot at the end of the Task and another reboot at the end of the Run. Remove the LibvirtRunListener to only reboot at the end of a Task which covers both pipelines and traditionnal jobs. Signed-off-by: Michael Jeanson <mjean...@efficios.com> To unsubscribe from these emails, change your notification settings at https://github.com/jenkinsci/libvirt-agent-plugin/settings/notifications -- You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/libvirt-agent-plugin/push/refs/heads/master/564260-d3e236%40github.com.