Package hudson
Class LauncherDecorator
java.lang.Object
hudson.LauncherDecorator
- All Implemented Interfaces:
- ExtensionPoint
Decorates 
Launcher so that one can intercept executions of commands
 and alters the command being executed, such as doing this in fakeroot, sudo, pfexec, etc.- Since:
- 1.299
- Author:
- Kohsuke Kawaguchi
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ExtensionList<LauncherDecorator> all()Returns all the registeredLauncherDecorators.abstract LauncherCalled fromNode.createLauncher(TaskListener)to decorate the launchers.
- 
Constructor Details- 
LauncherDecoratorpublic LauncherDecorator()
 
- 
- 
Method Details- 
decorateCalled fromNode.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 thatLaunchers are also created for doing things other than builds, soExecutor.currentExecutor()may return null. Also, for job-specific decoration, seeBuildWrapper.decorateLauncher(AbstractBuild, Launcher, BuildListener)as well.- Parameters:
- launcher- The base launcher that you can decorate.
- node- Node for which this launcher is created.
- Returns:
- Return the 'launcher' parameter to do no-op.
- See Also:
 
- 
allReturns all the registeredLauncherDecorators.
 
-