File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
java/org/csanchez/jenkins/plugins/kubernetes/pipeline
resources/org/csanchez/jenkins/plugins/kubernetes/pipeline Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33import static org .csanchez .jenkins .plugins .kubernetes .KubernetesTestUtil .assumeKubernetes ;
44
5+ import org .apache .commons .lang .StringUtils ;
56import org .csanchez .jenkins .plugins .kubernetes .KubernetesTestUtil ;
67import org .csanchez .jenkins .plugins .kubernetes .pipeline .steps .CreateWorkflowJobThenScheduleRun ;
78import 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 }
Original file line number Diff line number Diff line change 1- podTemplate {
1+ podTemplate( yaml : ' ' ) {
22 node(POD_LABEL ) {
33 sh ' true'
44 }
You can’t perform that action at this time.
0 commit comments