Skip to content

Commit aab44e3

Browse files
committed
#7 fix wrong port binding for selenium hub
1 parent 42c8349 commit aab44e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vars/withSelenium.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void call(Map config = [:], String seleniumNetwork, Closure closure) {
5959
seleniumHubImage.pull()
6060
// Run with Jenkins user, so the files created in the workspace by selenium can be deleted later
6161
// Otherwise that would be root, and you know how hard it is to get rid of root-owned files.
62-
def dockerArgs = "-u ${uid}:${gid} ${networkParameter} ${gridDebugParameter} -p 4444:${config.hubPortMapping} --name ${hubName}"
62+
def dockerArgs = "-u ${uid}:${gid} ${networkParameter} ${gridDebugParameter} -p ${config.hubPortMapping}:4444 --name ${hubName}"
6363
seleniumHubImage.withRun(dockerArgs) { hubContainer ->
6464
String seleniumIp = findContainerIp(hubContainer)
6565

0 commit comments

Comments
 (0)