Every Jenkins build creates a network before running the selenoid tests. e.g.,
Creating network "jenkinspr613build11_default"
.
The network name is based on the PR and build number.
The docker-compose.yaml file, had the below config for selenoid service:
selenoid:
image: "aerokube/selenoid:latest-release"
command: -listen :4444 -conf /etc/selenoid/browsers.json -limit 6 -video-output-dir /opt/selenoid/video/ -timeout 3m -container-network jenkinswebpr613build11_default
ports:
- "4444:4444"
How can I configure the value of -container-network
for every build?
Can I pass an environment variable to the yaml file?
I can start the tests locally when I hard-code the value of -container-network
.