From 6be7ee0c40cc3b936767a0ca26724fd092f45d96 Mon Sep 17 00:00:00 2001 From: Mike Bonnet Date: Jul 02 2019 14:31:24 +0000 Subject: narrow the output of `startBuild()` so we only have the build object Some version of the OpenShift Client Plugin started returning multiple values from `startBuild()`. It appears to include some log output as well as the `build` object. This filters out those extra values, to avoid errors when we call `name()` on the selector. --- diff --git a/src/com/redhat/c3i/util/Builder.groovy b/src/com/redhat/c3i/util/Builder.groovy index 0f6b098..3cea805 100644 --- a/src/com/redhat/c3i/util/Builder.groovy +++ b/src/com/redhat/c3i/util/Builder.groovy @@ -19,7 +19,7 @@ def build(bcname, boolean wait, Object... args) { } def _build(bc, boolean wait, Object... args) { - def build = bc.startBuild(args as String[]) + def build = bc.startBuild(args as String[]).narrow("build") if (wait) { _wait(build) }