From 6cfe430aa4b2b76d6b40b868dc6baffaa3ab3a25 Mon Sep 17 00:00:00 2001 From: Johannes Beck Date: Fri, 22 Mar 2024 18:54:16 +0100 Subject: [PATCH] Use container host for Jenkins --- src/test/java/x1/arquillian/Containers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/x1/arquillian/Containers.java b/src/test/java/x1/arquillian/Containers.java index c289c580..f11de36e 100644 --- a/src/test/java/x1/arquillian/Containers.java +++ b/src/test/java/x1/arquillian/Containers.java @@ -51,8 +51,8 @@ public void configureAfterStart(ContainerRegistry registry) { protocolConfiguration.property("port", Integer.toString(wildfly.getMappedPort(8080))); protocolConfiguration.property("host", System.getProperty("DOCKER_HOST", wildfly.getHost())); } else { - containerConfiguration.property("managementAddress", - wildfly.getContainerInfo().getNetworkSettings().getNetworks().values().iterator().next().getIpAddress()); + containerConfiguration.property("managementAddress", wildfly.getHost()); + containerConfiguration.property("managementPort", Integer.toString(wildfly.getMappedPort(9990))); } }