Are you using the Xvnc plugin, or assuming the ability to connect to another X server? You may find it easier to use the Xvnc plugin and let Jenkins start and stop an X server for the jobs.
If you're already using the Xvnc plugin, then you might consider checking that you can connect to the X server from the command line as the Jenkins user. Login as the jenkins user, set the DISPLAY variable (DISPLAY=:0) and start an xterm command. Mark Waite On Sat, Mar 29, 2014 at 5:16 AM, Daniel Beck <[email protected]> wrote: > I'd try comparing the output of the `env` command in your terminal and in > the Jenkins job to see whether relevant environment variables need to be > defined in the job. > > On 29.03.2014, at 05:41, Fatemeh Mehdizadeh <[email protected]> > wrote: > > > Hi all, > > > > My test on jenkins is failing because jenkins can't connect to the x > server on my Debian machine. In my job configuration I set Build--->Execute > shell----> and in command section I typed: > > > > bash -l -c "rm -rf router/reports/*.pdf" > > echo $WORKSPACE > workspace_place > > bash -l -c "nosetests -w router --with-xunit" > > > > When I build the job it says: > > nosetests: cannot connect to X server > > > > My tcp connection is enabled, when I run netstat -nal | grep 6000 the > output is: > > > > tcp 0 0 0.0.0.0:6000 0.0.0.0:* > LISTEN > > tcp6 0 0 :::6000 :::* > LISTEN > > > > and also in terminal I typed: > > xhost localhost > > > > I don't Know what should i do, please help me. > > > > Thanks > > > > > > -- > > 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 [email protected]. > > For more options, visit https://groups.google.com/d/optout. > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Thanks! Mark Waite -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
