Class KubernetesAgentErrorCondition
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.flow.ErrorCondition>
org.jenkinsci.plugins.workflow.flow.ErrorCondition
org.csanchez.jenkins.plugins.kubernetes.pipeline.KubernetesAgentErrorCondition
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.flow.ErrorCondition>
,Serializable
public class KubernetesAgentErrorCondition
extends org.jenkinsci.plugins.workflow.flow.ErrorCondition
Qualifies
node
blocks associated with KubernetesSlave
to be retried if the node was deleted.
A more specific version of AgentErrorCondition
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.flow.ErrorCondition
org.jenkinsci.plugins.workflow.flow.ErrorCondition.ErrorConditionDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setHandleNonKubernetes
(boolean handleNonKubernetes) boolean
Methods inherited from class org.jenkinsci.plugins.workflow.flow.ErrorCondition
getDescriptor
-
Constructor Details
-
KubernetesAgentErrorCondition
@DataBoundConstructor public KubernetesAgentErrorCondition()
-
-
Method Details
-
isHandleNonKubernetes
public boolean isHandleNonKubernetes() -
setHandleNonKubernetes
@DataBoundSetter public void setHandleNonKubernetes(boolean handleNonKubernetes) -
test
public boolean test(@NonNull Throwable t, @CheckForNull org.jenkinsci.plugins.workflow.steps.StepContext context) throws IOException, InterruptedException - Specified by:
test
in classorg.jenkinsci.plugins.workflow.flow.ErrorCondition
- Throws:
IOException
InterruptedException
-