@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public class ExitLifecycle extends Lifecycle
Lifecyclethat delegates the responsibility to restart Jenkins to an external watchdog such as SystemD or OpenRC.
Restart by exit with specific code.
|Constructor and Description|
|Modifier and Type||Method and Description|
If this life cycle supports a restart of Hudson, do so.
canRestart, canRewriteHudsonWar, get, getHudsonWar, rewriteHudsonWar, verifyRestartable
public void restart()
UnsupportedOperationException, which is what the default implementation does.
The restart operation may happen synchronously (in which case this method will never return), or asynchronously (in which case this method will successfully return.)
Throw an exception if the operation fails unexpectedly.
Copyright © 2004–2018. All rights reserved.