/** * Releases and removes this agent. */ public void terminate() throws InterruptedException, IOException { final Computer computer = toComputer(); if (computer != null) { computer.recordTermination(); } try { // TODO: send the output to somewhere real _terminate(new StreamTaskListener(System.out, Charset.defaultCharset())); } finally { try { Jenkins.get().removeNode(this); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to remove "+name,e); } } }
/** * Releases and removes this slave. */ public void terminate() throws InterruptedException, IOException { try { // TODO: send the output to somewhere real _terminate(new StreamTaskListener(System.out, Charset.defaultCharset())); } finally { try { Hudson.getInstance().removeNode(this); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to remove "+name,e); } } }
/** * Releases and removes this slave. */ public void terminate() throws InterruptedException, IOException { try { // TODO: send the output to somewhere real _terminate(new StreamTaskListener(System.out, Charset.defaultCharset())); } finally { try { Hudson.getInstance().removeNode(this); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to remove "+name,e); } } }
/** * Releases and removes this slave. */ public void terminate() throws InterruptedException, IOException { try { // TODO: send the output to somewhere real _terminate(new StreamTaskListener(System.out, Charset.defaultCharset())); } finally { try { Hudson.getInstance().removeNode(this); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to remove "+name,e); } } }
/** * Releases and removes this agent. */ public void terminate() throws InterruptedException, IOException { final Computer computer = toComputer(); if (computer != null) { computer.recordTermination(); } try { // TODO: send the output to somewhere real _terminate(new StreamTaskListener(System.out, Charset.defaultCharset())); } finally { try { Jenkins.getInstance().removeNode(this); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to remove "+name,e); } } }
/** * Releases and removes this slave. */ public void terminate() throws InterruptedException, IOException { try { // TODO: send the output to somewhere real _terminate(new StreamTaskListener(System.out, Charset.defaultCharset())); } finally { try { Hudson hudson = Hudson.getInstance(); hudson.removeNode(this); if (hudson.isTeamManagementEnabled()) { hudson.getTeamManager().removeNode(getNodeName()); } } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to remove " + name, e); } } }