Class Always
java.lang.Object
hudson.model.AbstractDescribableImpl<PodRetention>
org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention
org.csanchez.jenkins.plugins.kubernetes.pod.retention.Always
- 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> pod) 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
-
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 classPodRetention
- Parameters:
cloud
- - theKubernetesCloud
the agent pod belongs to.pod
- - thePod
running the Jenkins build.- Returns:
true
if the agent pod should be deleted.
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classPodRetention
-