public abstract class LauncherDecorator extends Object implements ExtensionPoint
Launcherso that one can intercept executions of commands and alters the command being executed, such as doing this in fakeroot, sudo, pfexec, etc.
BuildWrapper.decorateLauncher(AbstractBuild, Launcher, BuildListener)
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns all the registered
Node.createLauncher(TaskListener)to decorate the launchers.
This method should perform node-specific decoration. For job-specific decoration,
BuildWrapper.decorateLauncher(AbstractBuild, Launcher, BuildListener) might
fit your needs better.
If the implementation wants to do something differently if the launcher is
for a build, call
Executor.currentExecutor(). If it returns non-null
you can figure out the current build in progress from there. Note that
Launchers are also created for doing things other than builds,
Executor.currentExecutor() may return null. Also, for job-specific
BuildWrapper.decorateLauncher(AbstractBuild, Launcher, BuildListener) as well.
Copyright © 2004–2021. All rights reserved.