Skip to content

Commit 8017cce

Browse files
committed
Update test to account for latest compatibility problems
1 parent 7f7b685 commit 8017cce

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/AbstractKubernetesPipelineRJRTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.csanchez.jenkins.plugins.kubernetes.KubernetesTestUtil.assumeKubernetes;
44

5+
import org.apache.commons.lang.StringUtils;
56
import org.csanchez.jenkins.plugins.kubernetes.KubernetesTestUtil;
67
import org.csanchez.jenkins.plugins.kubernetes.pipeline.steps.CreateWorkflowJobThenScheduleRun;
78
import org.csanchez.jenkins.plugins.kubernetes.pipeline.steps.RunId;
@@ -22,12 +23,12 @@ public abstract class AbstractKubernetesPipelineRJRTest {
2223
{
2324
rjr = new RealJenkinsRule();
2425
String connectorHost = System.getProperty("connectorHost");
25-
if (connectorHost != null) {
26+
if (StringUtils.isNotBlank(connectorHost)) {
2627
System.err.println("Listening on host address: " + connectorHost);
2728
rjr.withHttpListenAddress(connectorHost);
2829
}
2930
String port = System.getProperty("port");
30-
if (port != null) {
31+
if (StringUtils.isNotBlank(port)) {
3132
System.err.println("Overriding port using system property: " + port);
3233
rjr = rjr.withPort(Integer.parseInt(port));
3334
}

src/test/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/basicPipeline.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
podTemplate {
1+
podTemplate(yaml: '') {
22
node(POD_LABEL) {
33
sh 'true'
44
}

0 commit comments

Comments
 (0)