Class SetupSlaveLauncher
java.lang.Object
hudson.model.AbstractDescribableImpl<ComputerLauncher>
hudson.slaves.ComputerLauncher
hudson.slaves.DelegatingComputerLauncher
org.jenkinsci.plugins.slave_setup.SetupSlaveLauncher
- All Implemented Interfaces:
ExtensionPoint,Describable<ComputerLauncher>
Implements the custom logic for an on-demand slave, executing scripts before connecting and after disconnecting
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.slaves.DelegatingComputerLauncher
launcherFields inherited from class hudson.slaves.ComputerLauncher
LIST -
Constructor Summary
ConstructorsConstructorDescriptionSetupSlaveLauncher(ComputerLauncher launcher, String startScript, String stopScript) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterDisconnect(SlaveComputer computer, TaskListener listener) Getters for Jellyvoidlaunch(SlaveComputer computer, TaskListener listener) Delegated methods that plug the additional logic for on-demand slavesMethods inherited from class hudson.slaves.DelegatingComputerLauncher
beforeDisconnect, getLauncherMethods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launchMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
SetupSlaveLauncher
@DataBoundConstructor public SetupSlaveLauncher(ComputerLauncher launcher, String startScript, String stopScript)
-
-
Method Details
-
getStartScript
Getters for Jelly- Returns:
- Object startScript
-
getStopScript
- Returns:
- Object stopScript
-
launch
public void launch(SlaveComputer computer, TaskListener listener) throws IOException, InterruptedException Delegated methods that plug the additional logic for on-demand slaves- Overrides:
launchin classDelegatingComputerLauncher- Parameters:
computer- SlaveComputer target to perform the launch.listener- Job's TaskListener- Throws:
IOExceptionInterruptedException
-
afterDisconnect
- Overrides:
afterDisconnectin classDelegatingComputerLauncher
-