Class OnFailure
java.lang.Object
hudson.model.AbstractDescribableImpl<PodRetention>
org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention
org.csanchez.jenkins.plugins.kubernetes.pod.retention.OnFailure
- All Implemented Interfaces:
ExtensionPoint
,Describable<PodRetention>
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
shouldDeletePod
(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, getPodTemplateDefault
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
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 classPodRetention
- Parameters:
cloud
- - theKubernetesCloud
the agent pod belongs to.podS
- - thePod
running the Jenkins build.- Returns:
true
if the agent pod should be deleted.
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classPodRetention
-