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
launcher
Fields inherited from class hudson.slaves.ComputerLauncher
LIST
-
Constructor Summary
ConstructorsConstructorDescriptionSetupSlaveLauncher
(ComputerLauncher launcher, String startScript, String stopScript) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterDisconnect
(SlaveComputer computer, TaskListener listener) Getters for Jellyvoid
launch
(SlaveComputer computer, TaskListener listener) Delegated methods that plug the additional logic for on-demand slavesMethods inherited from class hudson.slaves.DelegatingComputerLauncher
beforeDisconnect, getLauncher
Methods inherited from class hudson.slaves.ComputerLauncher
afterDisconnect, beforeDisconnect, checkJavaVersion, isLaunchSupported, launch
Methods 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:
launch
in classDelegatingComputerLauncher
- Parameters:
computer
- SlaveComputer target to perform the launch.listener
- Job's TaskListener- Throws:
IOException
InterruptedException
-
afterDisconnect
- Overrides:
afterDisconnect
in classDelegatingComputerLauncher
-