I browsed a lot on this topic. There are different variations of this question or no answer to fix my issue. Any help is appreciated.
- I have installed firefox on my VM as root in
/usr/bin/firefox
. - I downloaded the maven project to run selenium tests, and run it
manually on my VM using
mvn clean install
command. This opens the browser and also successfully runs the test. - Now I run Jenkins as myself (
JAVA_HOME
is/usr/java/latest
and started the service asnohup java -jar jenkins.war --httpPort=-1 --httpsPort=8082
; version is 1.522). - Create a new freestyle s/w project; Configure the job to download the maven project and invoke maven target 'clean install';
- When I run the job, I can see the steps in the console output but the browser is not opening. It also locks up my AD account.
Why is this happening? What is the fix?