jenkins: reboot job appears as failed while it is successfull

When a Jenkins job is used to reboot a server, it's common for the job to be marked as "failed" because the reboot process interrupts the Jenkins job before it can complete normally.

The solution is use a 1 minute delay on your reboot command.

 

ssh root@YOUR-UP 'shutdown -r +1'

Leave a Reply

Your email address will not be published. Required fields are marked *