Class ComputerListenerImpl
java.lang.Object
hudson.slaves.ComputerListener
org.jenkinsci.plugins.slave_setup.ComputerListenerImpl
- All Implemented Interfaces:
ExtensionPoint
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpreOnline(Computer c, hudson.remoting.Channel channel, FilePath root, TaskListener listener) Prepares the slave before it gets online by copying the given content in root and executing the configured setup script.Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onIdle, onLaunchFailure, onOffline, onOffline, onOnline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, register, unregister
-
Constructor Details
-
ComputerListenerImpl
public ComputerListenerImpl()
-
-
Method Details
-
preOnline
public void preOnline(Computer c, hudson.remoting.Channel channel, FilePath root, TaskListener listener) throws IOException, InterruptedException Prepares the slave before it gets online by copying the given content in root and executing the configured setup script.- Overrides:
preOnlinein classComputerListener- Parameters:
c- the computer to set upchannel- not usedroot- the root of the slavelistener- log listener- Throws:
IOException- IO error accessing file on disk (cache)InterruptedException- Pipe Broken
-