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.
/usr/bin/firefox
. mvn clean install
command. This opens the
browser and also successfully runs the test. JAVA_HOME
is /usr/java/latest
and started the service as
nohup java -jar jenkins.war --httpPort=-1 --httpsPort=8082
; version
is 1.522). Why is this happening? What is the fix?
nohup
runs Jenkins in the background (http://en.wikipedia.org/wiki/Nohup), in which case according to this post Jenkins will start the browser in the background as well.
Try starting jenkins without nohup
so that it runs in the foreground (java -jar jenkins.war --httpPort=-1 --httpsPort=8082
).
Or you can start Jenkins as a daemon (this Jenkins Wiki page contains an example of init script). When Jenkins is started as daemon, the browser started by its job is visible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With