Reputation: 4352
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?
Upvotes: 5
Views: 12018
Reputation: 21
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.
Upvotes: 2