Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins, xvfb and selenium

I have been attempting to follow the instructions here to get the Xvfb plugin running: https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin

Currently the xvfb executable is at /usr/bin/Xvfb.

My project configuration and Jenkins config are identical to the instructions, however i am getting this error:

ERROR: No Xvfb installations defined, please define one in the configuration. Once defined you''ll need to choose one under Advanced options for Xvfb plugin job settings and save job configuration.

I have also tried putting the path to the executable in the Jenkins config, with had no change on the outcome.

Any ideas how I can get this working?

like image 427
Calum Avatar asked Feb 19 '13 22:02

Calum


People also ask

What is XVFB in Jenkins?

Xvfb display name offset lets you specify a offset i.e. a number that will be added to the job's executor number that will form the display name used. This is handy if you run other X servers (Xvfb, Xvnc or similar) in order to ensure that display numbers do not overlap.

Where to find Xvfb executable?

Currently the xvfb executable is at /usr/bin/Xvfb .

What is XVFB used for?

Xvfb or X virtual framebuffer is a display server implementing the X11 display server protocol. In contrast to other display servers, Xvfb performs all graphical operations in virtual memory without showing any screen output.

What is XVFB plugin?

Xvfb Plugin for jenkins lets you control Xvfb virtual frame buffer X11 server with each build. It starts Xvfb before the build starts, and stops it with the build.


3 Answers

You must define a Xfvb installation in "Manage Jenkins" => "Configure System" => "Xvfb installation"

like image 127
rcomblen Avatar answered Sep 16 '22 11:09

rcomblen


You must define installation Xvfb on Jenkins. Access Manage Jenkins >> Global Tool Configuration. In Section Xvfb installation, put name and fill the field "Directory in which to find Xvfb executable" with /usr/bin.

like image 38
Alessandro Cunha Avatar answered Sep 19 '22 11:09

Alessandro Cunha


Currently the xvfb executable is at /usr/bin/Xvfb

No, default xvfb location is /usr/bin

like image 38
Mixail Yurin Avatar answered Sep 16 '22 11:09

Mixail Yurin