openvidu-test-e2e: Jenkinsfile new ports for Chrome and Firefox containers

pull/375/head
pabloFuente 2019-06-25 10:25:51 +02:00
parent a72804ea99
commit bd54e77f08
1 changed files with 3 additions and 3 deletions

View File

@ -2,10 +2,10 @@ node('container') {
sh 'docker rm -f chrome firefox e2e || true'
docker.image('selenium/standalone-chrome:latest').pull()
docker.image('selenium/standalone-firefox:latest').pull()
docker.image('selenium/standalone-chrome:latest').withRun('-p 4444:4444 --name chrome --shm-size=1g -v /opt/openvidu:/opt/openvidu') { c ->
docker.image('selenium/standalone-chrome:latest').withRun('-p 6666:4444 --name chrome --shm-size=1g -v /opt/openvidu:/opt/openvidu') { c ->
sh 'rm -rf /opt/openvidu/barcode.* && wget https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/barcode.y4m -P /opt/openvidu'
sh 'rm -rf /opt/openvidu/fakeaudio.* && wget https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/fakeaudio.wav -P /opt/openvidu'
docker.image('selenium/standalone-firefox:latest').withRun('-p 4445:4444 --name firefox --shm-size=1g') { d ->
docker.image('selenium/standalone-firefox:latest').withRun('-p 6667:4444 --name firefox --shm-size=1g') { d ->
def mycontainer = docker.image('openvidu/openvidu-test-e2e:$DISTRO')
mycontainer.pull()
mycontainer.inside("--name e2e -p 4200:4200 -p 4443:4443 -u root -e MY_UID=0 -v /var/run/docker.sock:/var/run/docker.sock:rw -v /dev/shm:/dev/shm -v /opt/openvidu:/opt/openvidu") {
@ -67,7 +67,7 @@ node('container') {
}
stage ('E2E tests') {
try {
sh 'cd openvidu/openvidu-test-e2e && sudo mvn --batch-mode -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:4443/ -DREMOTE_URL_CHROME=http://172.17.0.1:4444/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:4445/wd/hub/ test'
sh 'cd openvidu/openvidu-test-e2e && sudo mvn --batch-mode -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:4443/ -DREMOTE_URL_CHROME=http://172.17.0.1:6666/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:6667/wd/hub/ test'
}
finally {
junit "openvidu/openvidu-test-e2e/**/target/surefire-reports/TEST-*.xml"