There has a chance to restart Jenkins with stops the job or once job is completed. But is there any command or process to restart Jenkins without interrupt running job.

1 Answer 1


Jenkins jobs are not in interrupted if you run them on Jenkins agents and not a controller.

What you look for is safeRestart which:

Puts Jenkins into the quiet mode, wait for existing builds to be completed, and then restart Jenkins

Read more here and Jenkins docs.

  • I always wondered, what if my long-running job is executing on an agent and I restart the controller. Will the restarted controller pick up the long-running job continue showing log progress or not?
    – wowbagger
    Commented Mar 3, 2023 at 0:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.