Jenkins Cannot run program "Xvfb": java.io.IOException :no such file or directory
Asked Answered
F

1

6

I'm trying to run grails geb/spock tests on jenkins. I install Xvfb Plugin https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin. Jenkins configurations: enter image description here

Project configuration: enter image description here

Exception: enter image description here

Frill answered 6/8, 2015 at 13:32 Comment(5)
You may not have xvfb installed. Try installing it: serverfault.com/questions/344793/…Albumenize
But in jenkins in instaled plugins I have it with the version 1.0.16.Frill
have you checked the docs about the installation? is xvfb just not accessible/runable for the user jenkins runs as?Fearful
plugin probably assumes xvfb is present. You need to install it as admin. I see that plugin installation has option to install xvfb. Did you try checking that option (Install Automatically)?Albumenize
Tried to run with Install Automatically option but the same error.Frill
P
0

After you install the Xvfb Plugin, you have to do: Manage Jenkins -> Configure System and find the Xvfb Installation section and add an installation with a Name and Directory in which to find Xvfb executable (which can be blank if it can be found in the PATH). Without this setting, Xvfb doesn't work.

So, why not search the PATH by default? Why should this be needed??

Particiaparticipant answered 19/11, 2015 at 21:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.