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 <mehdizadeh.fate...@gmail.com> 
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 jenkinsci-users+unsubscr...@googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to