I have just tried running Xvfb from a Pre-build script. I first tried the same command that the plugin created, but just from command line on the server: Xvfb :1 -screen 0 -fbdir /var/lib/jenkins/xvfb-106-4356636144193454909.fbdir I get error: Invalid screen configuration -fbdir for -screen 0
If I run just: Xvfb :1 & export DISPLAY=:1 then my tests fail with: Error: no display specified because, of course, there is no way to export a variable from a pre-build script. :( On Thursday, 10 December 2015 13:19:19 UTC-7, V. Mark Lehky wrote: > > I have just installed the xvfb-plugin on my Jenkins: > - Linux jenkins 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u6 x86_64 > GNU/Linux > - Xvfb Version: 2:1.12.4-6+deb7u6 > - Jenkins ver. 1.641 > - Xvfb plugin 1.1.2 > > I configured everything with defaults as per documentation. > > The first time I run a job, in the logs I can see: > > Xvfb starting$ Xvfb :1 -screen 0 -fbdir > /var/lib/jenkins/xvfb-99-1021388786522495009.fbdir > and my job runs fine. > > Every *subsequent* run, the logs say: > Xvfb starting$ Xvfb :1 -screen 0 -fbdir > /var/lib/jenkins/xvfb-100-2665068639033469958.fbdir > > ERROR: Xvfb failed to start, consult the lines above for errors > > The "lines above" are just those two, nothing else. Is there a log somewhere? > If I reboot the server, then I am back to "first time"; however this is a > pretty drastic workaround. > What do I do to resolve this? > > TIA for any advice. > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cc41c59f-9fa4-457d-a302-9075e8e51a08%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.