I've written some functional tests for my Grails app using Geb. I've configured my tests identically to this example project, which allows you to specify a list of browsers that the tests may be run against.
The tests pass when I run them locally against Firefox. However, they fail if I run them on Jenkins, because Firefox cannot run in headless mode. A common solutions for this problem seems to be to use XVFB to emulate a display, so that Firefox can run on a headless machine. I've successfully installed XVFB on the Jenkins machine, but am not sure what additional configuration is required in order to get XVFB working with the Jenkins job that runs the functional tests?
There is an XVFB Jenkins plugin available, should I use this or is there another approach that people have been successful with?