[workflow-plugin] How to use Xvnc to run a step

45 views
Skip to first unread message

Reginaldo Russinholi

unread,
Aug 31, 2015, 3:22:13 PM8/31/15
to Jenkins Users
Hi all,

I'm new with workflow-plugin and I'm trying to run some webdriver tests, but I'm not able to make Xvnc work.

I tryied to use this code generate by Snippet Generator, to use XvfbInstallation:
 
tool name: 'default', type: 'org.jenkinsci.plugins.xvfb.XvfbInstallation'

and also including the following code to run:
wrap([$class: 'Xvnc', useXauthority: true]) {
   
// here $DISPLAY is set to :11 or similar, and $XAUTHORITY too
    sh
'make selenium-tests' // or whatever
 
}

All I've got is:
java.io.IOException: Cannot run program "vncserver" (in directory "/home/ubuntu/workspace/workflow-CIT996"): error=2, No such file or directory

I printed the return of "tool name: 'default', type: 'org.jenkinsci.plugins.xvfb.XvfbInstallation'"and it was blank. (I have Xvfb installation configured on Jenkins)

If someone can help me, will be welcome.

Reply all
Reply to author
Forward
0 new messages