Skip to content

Commit 93f47a8

Browse files
jonesbusyValentin Delaye
and
Valentin Delaye
authored
Ensure retry if EvictionByEvictionAPI is found on termination reasons (#1582)
Co-authored-by: Valentin Delaye <[email protected]>
1 parent b90136f commit 93f47a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesAgentErrorCondition.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public boolean test(@NonNull Throwable t, @CheckForNull StepContext context)
128128
}
129129
Set<String> terminationReasons =
130130
ExtensionList.lookupSingleton(Reaper.class).terminationReasons(node);
131-
if (terminationReasons.stream().anyMatch(IGNORED_CONTAINER_TERMINATION_REASONS::contains)) {
131+
if (terminationReasons.stream().allMatch(IGNORED_CONTAINER_TERMINATION_REASONS::contains)) {
132132
listener.getLogger()
133133
.println("Ignored termination reason(s) for " + node + " for purposes of retry: "
134134
+ terminationReasons);

0 commit comments

Comments
 (0)