Skip to content

Instantly share code, notes, and snippets.

@justfalter
Created May 20, 2020 23:36
Show Gist options
  • Save justfalter/77c1af8c3ae44db5a80e285465b858ef to your computer and use it in GitHub Desktop.
Save justfalter/77c1af8c3ae44db5a80e285465b858ef to your computer and use it in GitHub Desktop.
package org.jenkinsci.plugins;
import java.util.logging.Logger;
import hudson.Extension;
import hudson.model.Node;
import jenkins.model.NodeListener;
public class vSphereNodeListener {
private static final Logger LOGGER = Logger.getLogger(vSphereNodeListener.class.getName());
@Extension
public static class vSphereNodeListenerImpl extends NodeListener {
@Override
protected void onDeleted(Node node) {
LOGGER.fine(String.format("NODE DELETED: %s", node.getNodeName()));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment