Address the earlier comments. This version was tested on a local jenkins server.
mark-offline will mark the node offline, then wait for the timeout (currently 2 hours) for the node to become idle. When a node is offline, jenkins will not schedule new jobs, but does wait for any running jobs to complete. This allows for a graceful shutdown of a node without impacting any running jobs.
Address the earlier comments. This version was tested on a local jenkins server.
mark-offline will mark the node offline, then wait for the timeout (currently 2 hours) for the node to become idle. When a node is offline, jenkins will not schedule new jobs, but does wait for any running jobs to complete. This allows for a graceful shutdown of a node without impacting any running jobs.