Should use safeRestart, not immediate restart, when -restart option is given.
Merge branch 'master' of github.com:jenkinsci/jenkins