@Override public void onSuccess(CpsThreadGroup g) { if (v) { g.pause(); checkAndAbortNonresumableBuild(); // TODO Verify if we can rely on just killing paused builds at shutdown via checkAndAbortNonresumableBuild() checkpoint(); } else { g.unpause(); } try { owner.getListener().getLogger().println(v ? "Pausing" : "Resuming"); } catch (IOException x) { LOGGER.log(Level.WARNING, null, x); } } @Override public void onFailure(Throwable x) {