// Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
//   TERMINATED,
//   READY,
//   FAILED
// }


import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension;
  {
    super(url, cloudTestServerID, name);
  }
  
  @Extension
  @Symbol("stopTestEnvironment")
  public static class DescriptorImpl extends AbstractCloudCommandPostBuildDescriptor
  {
      @Override
      public String getDisplayName()
      {
          return "Stop Test Environment";
      }
  }
  
  @Override
  public String getCommand()
  {
    return "terminate-env";
  }
  
  @Override
  public int getDefaultTimeout() 
  {
    return 1200;
  }

  @Override
  public CloudStatus getSuccessStatus()
  {
// Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
//   TERMINATED,
//   READY,
//   FAILED
// }


// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/StopTestEnvironment.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension;

  {
    super(url, cloudTestServerID, name);
  }
  
  @Extension
  @Symbol("stopTestEnvironment")
  public static class DescriptorImpl extends AbstractCloudCommandPostBuildDescriptor
  {
      @Override
      public String getDisplayName()
      {
          return "Stop Test Environment";
      }
  }
  
  @Override
  public String getCommand()
  {
    return "terminate-env";
  }
  
  @Override
  public int getDefaultTimeout() 
  {
    return 1200;
  }

  @Override
  public CloudStatus getSuccessStatus()
  {
    return CloudStatus.TERMINATED;