What do you think about exposing the stop() method? I found it in the source on GitHub, but I've only just begun to take a look at the source code for this project.
void stop() { try { AmazonEC2 ec2 = getCloud().connect(); StopInstancesRequest request = new StopInstancesRequest( Collections.singletonList(getInstanceId())); ec2.stopInstances(request); LOGGER.info("EC2 instance stopped: " + getInstanceId()); toComputer().disconnect(null); } catch (AmazonClientException e) { Instance i = getInstance(getInstanceId(), getCloud()); LOGGER.log(Level.WARNING, "Failed to terminate EC2 instance: "+getInstanceId() + " info: "+((i != null)?i:"") , e); } } -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.