/** * Called right after a {@link Computer} comes online. * * <p> * This enables you to do some work on all the agents * as they get connected. * * <p> * Starting Hudson 1.312, this method is also invoked for the master, not just for agents. * * @param 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. * * @throws IOException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * @throws InterruptedException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * * @see #preOnline(Computer, Channel, FilePath, TaskListener) */ public void onOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { // compatibility onOnline(c); }
for (ComputerListener cl : ComputerListener.all()) { try { cl.onOnline(c, new LogTaskListener(LOGGER, INFO)); } catch (Throwable t) { if (t instanceof Error) {
try { for (ComputerListener cl : ComputerListener.all()) { cl.onOnline(this,taskListener);
public void superOnOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { super.onOnline(c, listener); }
public void superOnOnline(Computer c) { super.onOnline(c); }
/** * Called right after a {@link Computer} comes online. * * <p> This enables you to do some work on all the slaves as they get * connected. * * <p> Starting Hudson 1.312, this method is also invoked for the master, * not just for slaves. * * @param listener This is connected to the launch log of the computer. * 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. * * @throws IOException Exceptions will be recorded to the listener. Note * that throwing an exception doesn't put the computer offline. * @throws InterruptedException Exceptions will be recorded to the listener. * Note that throwing an exception doesn't put the computer offline. * * @see #preOnline(Computer, Channel, FilePath, TaskListener) */ public void onOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { // compatibility onOnline(c); }
/** * Called right after a {@link Computer} comes online. * * <p> * This enables you to do some work on all the slaves * as they get connected. * * <p> * Starting Hudson 1.312, this method is also invoked for the master, not just for slaves. * * @param listener * This is connected to the launch log of the computer. * 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. * * @throws IOException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * @throws InterruptedException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * * @see #preOnline(Computer, Channel, FilePath, TaskListener) */ public void onOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { // compatibility onOnline(c); }
/** * Called right after a {@link Computer} comes online. * * <p> * This enables you to do some work on all the slaves * as they get connected. * * <p> * Starting Hudson 1.312, this method is also invoked for the master, not just for slaves. * * @param listener * This is connected to the launch log of the computer. * 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. * * @throws IOException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * @throws InterruptedException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * * @see #preOnline(Computer, Channel, FilePath, TaskListener) */ public void onOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { // compatibility onOnline(c); }
/** * Called right after a {@link Computer} comes online. * * <p> * This enables you to do some work on all the agents * as they get connected. * * <p> * Starting Hudson 1.312, this method is also invoked for the master, not just for agents. * * @param 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. * * @throws IOException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * @throws InterruptedException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * * @see #preOnline(Computer, Channel, FilePath, TaskListener) */ public void onOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { // compatibility onOnline(c); }
/** * Called right after a {@link Computer} comes online. * * <p> * This enables you to do some work on all the slaves * as they get connected. * * <p> * Starting Hudson 1.312, this method is also invoked for the master, not just for slaves. * * @param listener * This is connected to the launch log of the computer. * 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. * * @throws IOException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * @throws InterruptedException * Exceptions will be recorded to the listener. Note that * throwing an exception doesn't put the computer offline. * * @see #preOnline(Computer, Channel, FilePath, TaskListener) */ public void onOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { // compatibility onOnline(c); }
@Override public void onOnline(Computer c) { initPython(); if (pexec.isImplemented(3)) { pexec.execPythonVoid("on_online", c); } else { super.onOnline(c); } }
@Override public void onOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { initPython(); if (pexec.isImplemented(4)) { pexec.execPythonVoid("on_online", c, listener); } else { super.onOnline(c, listener); } }
if (c != null) { for (ComputerListener cl : ComputerListener.all()) { cl.onOnline(c, StreamTaskListener.fromStdout());
if (c != null) { for (ComputerListener cl : ComputerListener.all()) { cl.onOnline(c, StreamTaskListener.fromStdout());
if (c != null) { for (ComputerListener cl : ComputerListener.all()) { cl.onOnline(c, StreamTaskListener.fromStdout());
try { for (ComputerListener cl : ComputerListener.all()) { cl.onOnline(this,taskListener);
cl.onOnline(this,taskListener); log.println("Slave successfully connected and online"); Hudson.getInstance().getQueue().scheduleMaintenance();
cl.onOnline(this,taskListener); log.println("Slave successfully connected and online"); Hudson.getInstance().getQueue().scheduleMaintenance();
cl.onOnline(this,taskListener); log.println("Slave successfully connected and online"); Hudson.getInstance().getQueue().scheduleMaintenance();
cl.onOnline(this, taskListener);