Skip to content

Commit 89b92cb

Browse files
committed
Clarify in warning message why retry might have declined to do so
1 parent 8e0c0ca commit 89b92cb

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public boolean test(Throwable t, StepContext context) throws IOException, Interr
108108
Set<LabelAtom> labels = ws.getLabels();
109109
if (labels.stream().noneMatch(l -> Jenkins.get().clouds.stream().anyMatch(c -> c instanceof KubernetesCloud && ((KubernetesCloud) c).getTemplate(l) != null))) {
110110
if (!handleNonKubernetes) {
111-
listener.getLogger().println(node + " was not a Kubernetes agent judging by " + labels);
111+
listener.getLogger().println(node + " did not look like a Kubernetes agent judging by " + labels + "; make sure retry is inside podTemplate, not outside");
112112
}
113113
return handleNonKubernetes;
114114
}

0 commit comments

Comments
 (0)