From adcdbed40d8f32c64f1aa7ce8ec3b301c072f5b7 Mon Sep 17 00:00:00 2001 From: Phil Kates Date: Wed, 30 Nov 2016 12:34:34 -0800 Subject: [PATCH] Fix logic for waitUntilContainerIsReady --- .../plugins/kubernetes/pipeline/ContainerExecDecorator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java index 17e5267ca2..e3854197c9 100755 --- a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java +++ b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java @@ -84,7 +84,7 @@ public Launcher decorate(final Launcher launcher, final Node node) { return new Launcher.DecoratedLauncher(launcher) { @Override public Proc launch(ProcStarter starter) throws IOException { - if (waitUntilContainerIsReady()) { + if (!waitUntilContainerIsReady()) { throw new IOException("Failed to execute shell script inside container " + "[" + containerName + "] of pod [" + podName + "]." + " Timed out waiting for container to become ready!");