Skip to content

Commit e96f436

Browse files
committed
Need to use custom httpListenAddress as well
1 parent 0cdde89 commit e96f436

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@
4444
minikube ip | sed -e 's/\([0-9]*\.[0-9]*\.[0-9]*\).*/\1.1/' -->
4545
<connectorHost />
4646
<jenkins.host.address />
47+
<port/>
4748
<slaveAgentPort />
4849
<jenkins.version>2.361.4</jenkins.version>
4950
<no-test-jar>false</no-test-jar>
5051
<useBeta>true</useBeta>
5152
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
52-
<jenkins-test-harness.version>1919.v8b_ea_09f5a_b_e2</jenkins-test-harness.version> <!-- TODO https://github.com/jenkinsci/jenkins-test-harness/pull/541 -->
53+
<jenkins-test-harness.version>1921.v1f1c29de9da_2</jenkins-test-harness.version> <!-- TODO https://github.com/jenkinsci/jenkins-test-harness/pull/541 -->
5354
</properties>
5455

5556
<dependencies>
@@ -274,6 +275,7 @@
274275
<!-- have pods connect to this address for Jenkins -->
275276
<jenkins.host.address>${jenkins.host.address}</jenkins.host.address>
276277
<slaveAgentPort>${slaveAgentPort}</slaveAgentPort>
278+
<port>${port}</port>
277279
</systemPropertyVariables>
278280
</configuration>
279281
</plugin>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public abstract class AbstractKubernetesPipelineRJRTest {
2121
public RealJenkinsRule rjr;
2222
{
2323
rjr = new RealJenkinsRule();
24+
String connectorHost = System.getProperty("connectorHost");
25+
if (connectorHost != null) {
26+
System.err.println("Listening on host address: " + connectorHost);
27+
rjr.withHttpListenAddress(connectorHost);
28+
}
2429
String port = System.getProperty("port");
2530
if (port != null) {
2631
System.err.println("Overriding port using system property: " + port);

0 commit comments

Comments
 (0)