From 59f4abade4754df9b5bc191e64086df7269042a6 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Tue, 13 Aug 2019 17:05:38 +0100 Subject: [PATCH 1/2] Remove static modifer --- vars/buildPlugin.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/buildPlugin.groovy b/vars/buildPlugin.groovy index 83bb8f4d2..b72c053e1 100644 --- a/vars/buildPlugin.groovy +++ b/vars/buildPlugin.groovy @@ -187,7 +187,7 @@ def call(Map params = [:]) { } } -static boolean hasDockerLabel() { +boolean hasDockerLabel() { env?.NODE_LABELS?.contains("docker") } From 97a0b0178742a21e4c9e25ff2ee5a2598f834700 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Tue, 13 Aug 2019 17:06:31 +0100 Subject: [PATCH 2/2] Remove unneeded null check --- vars/buildPlugin.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/buildPlugin.groovy b/vars/buildPlugin.groovy index b72c053e1..20279a306 100644 --- a/vars/buildPlugin.groovy +++ b/vars/buildPlugin.groovy @@ -188,7 +188,7 @@ def call(Map params = [:]) { } boolean hasDockerLabel() { - env?.NODE_LABELS?.contains("docker") + env.NODE_LABELS?.contains("docker") } static List> getConfigurations(Map params) {