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

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

    • OnFailure

      @DataBoundConstructor public OnFailure()
  • Method Details

    • shouldDeletePod

      public boolean shouldDeletePod(KubernetesCloud cloud, Supplier<io.fabric8.kubernetes.api.model.Pod> podS)
      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.
      podS - - 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