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
public class Always extends PodRetention implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Always.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Always()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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.String
toString()
-
Methods inherited from class org.csanchez.jenkins.plugins.kubernetes.pod.retention.PodRetention
getKubernetesCloudDefault, getPodTemplateDefault
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
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.
-
toString
public String toString()
- Overrides:
toString
in classPodRetention
-
-