Class Evicted
java.lang.Object
hudson.model.AbstractDescribableImpl<PodRetention>
org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention
org.csanchez.jenkins.plugins.kubernetes.pod.retention.Evicted
- All Implemented Interfaces:
ExtensionPoint,Describable<PodRetention>,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanshouldDeletePod(KubernetesCloud cloud, Supplier<io.fabric8.kubernetes.api.model.Pod> podS) Determines if a agent pod should be deleted after the Jenkins build completes.toString()Methods inherited from class org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention
getKubernetesCloudDefault, getPodTemplateDefaultMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
Evicted
@DataBoundConstructor public Evicted()
-
-
Method Details
-
shouldDeletePod
public boolean shouldDeletePod(KubernetesCloud cloud, Supplier<io.fabric8.kubernetes.api.model.Pod> podS) Description copied from class:PodRetentionDetermines if a agent pod should be deleted after the Jenkins build completes.- Specified by:
shouldDeletePodin classPodRetention- Parameters:
cloud- - theKubernetesCloudthe agent pod belongs to.podS- - thePodrunning the Jenkins build.- Returns:
trueif the agent pod should be deleted.
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classPodRetention
-