All Implemented Interfaces:
ExtensionPoint, Describable<PodRetention>, Serializable

public class Always extends PodRetention implements Serializable
See Also:
  • Constructor Details

    • Always

      @DataBoundConstructor public Always()
  • Method Details

    • shouldDeletePod

      public boolean shouldDeletePod(KubernetesCloud cloud, Supplier<io.fabric8.kubernetes.api.model.Pod> pod)
      Description copied from class: PodRetention
      Determines if a agent pod should be deleted after the Jenkins build completes.
      Specified by:
      shouldDeletePod in class PodRetention
      Parameters:
      cloud - - the KubernetesCloud the agent pod belongs to.
      pod - - the Pod running the Jenkins build.
      Returns:
      true if the agent pod should be deleted.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class PodRetention