how to reboot Jenkins slave in pipeline without job failed

Viewed 173

Here is the thing, I have got a program that may get stuck sometimes, and when it happens I need to reboot my machine.
So, I want to reboot my Jenkins slave when the program gets stuck then continue to execute the rest of my program without marking the whole job as failed.

Can Anyone tell me how to do that?

1 Answers

Actually I wanted to add this as a comment but I don't have enough reputation. You may want to use Restart from stage feature as documented here

Related