|Constructor and Description|
|Modifier and Type||Method and Description|
Called right after a
all, onConfigurationChange, onLaunchFailure, onOffline, onOffline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, preOnline, register, unregister
public void onOnline(Computer c, TaskListener listener)
This enables you to do some work on all the agents
as they get connected.
Exceptions will be recorded to the listener.
Exception will put the computer offline, however
Error will put the computer offline
since they indicate unrecoverable conditions.
Starting Hudson 1.312, this method is also invoked for the master, not just for agents.
listener- This is connected to the launch log of the computer or Jenkins master. Since this method is called synchronously from the thread that launches a computer, if this method performs a time-consuming operation, this listener should be notified of the progress. This is also a good listener for reporting problems.
ComputerListener.preOnline(Computer, Channel, FilePath, TaskListener)
Copyright © 2004–2021. All rights reserved.