You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests are successfully executed when using the image manually, yet, failes when using Jenkinsfile to orchatrate proccess.
To Reproduce
Spin up container using docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome
Execute selenium testings using mvn clean test etc - successful passed.
stop container.
Try to have this proccess managed by Jenkinsfile using: def server = Artifactory.server 'Artifactory' def rtMaven = Artifactory.newMavenBuild() def buildInfo docker.image("selenium/standalonechrome:latest").inside('--volume=/dev/shm:/dev/shm --publish=4444:4444') { stage ('code Build') { timestamps { try { withEnv(['JAVA_HOME=/usr/jdk1.8.0_171/', 'MAVEN_HOME=/usr/local/apache-maven/']) { // Java home of the container rtMaven.run pom: 'allure-junit-example-master/pom.xml', goals: 'clean test', buildInfo: buildInfo //sh 'sleep 8200' } } catch(err) { echo "****************Error: " + err // sh 'sleep 8200' throw err } } } }
The follwing error shall be raised:
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 3.10.0-862.3.2.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Expected behavior
A clear and concise description of what you expected to happen.
Test script reproducing this issue (when applicable)
Please provide a test script to reproduce the issue you are reporting, if the
setup is more complex, GitHub repo links are also OK.
Issues without a reproduction script are likely to stall and eventually be closed.
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:23:58 2018
OS/Arch: linux/amd64
Experimental: false
Docker-Compose version (if applicable):
Exact Docker command to start the containers (if using docker-compose, provide
the docker-compose file as well):
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
Tests are successfully executed when using the image manually, yet, failes when using Jenkinsfile to orchatrate proccess.
To Reproduce
docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome
mvn clean test
etc - successful passed.def server = Artifactory.server 'Artifactory' def rtMaven = Artifactory.newMavenBuild() def buildInfo docker.image("selenium/standalonechrome:latest").inside('--volume=/dev/shm:/dev/shm --publish=4444:4444') { stage ('code Build') { timestamps { try { withEnv(['JAVA_HOME=/usr/jdk1.8.0_171/', 'MAVEN_HOME=/usr/local/apache-maven/']) { // Java home of the container rtMaven.run pom: 'allure-junit-example-master/pom.xml', goals: 'clean test', buildInfo: buildInfo //sh 'sleep 8200' } } catch(err) { echo "****************Error: " + err // sh 'sleep 8200' throw err } } } }
Expected behavior
A clear and concise description of what you expected to happen.
Test script reproducing this issue (when applicable)
Please provide a test script to reproduce the issue you are reporting, if the
setup is more complex, GitHub repo links are also OK.
Issues without a reproduction script are likely to stall and eventually be closed.
Environment
OS:
Docker-Selenium image version:
Docker version:
Docker-Compose version (if applicable):
Exact Docker command to start the containers (if using docker-compose, provide
the docker-compose file as well):
The text was updated successfully, but these errors were encountered: