ok i just realized that after the export DISPLAY=:<PORT_NUMBER>
I have the command : Xvfb :`expr "$BUILD_NUMBER" + "100"` & So using the plugin will have the same impact. But... in the plugin I don't see anything to use a free port number... it is said that the port_number will be the number of the build. So there will be risk for build to abord if the port_number is take by another job... Le jeudi 7 janvier 2016 15:05:33 UTC+1, iostrym a écrit : > > Thanks a lot. But is the use of Xvfb plug-in more heavy than a > simple export DISPLAY function ? in term of ressource utilization... > > Le jeudi 7 janvier 2016 14:24:07 UTC+1, Mark Waite a écrit : >> >> The xvnc plugin can start a VNC based X server at the start of your job, >> and stop it at the end of your job. Most Linux distributions make it very >> easy to install Xvnc, then the plugin will use that installation of Xvnc to >> provide you a display server (and the DISPLAY environment variable). I had >> very good results with that plugin. >> >> There is also an Xvfb plugin which uses the X virtual frame buffer driver >> to do the same thing. I haven't used it, but there are others who have >> used it with good results. >> >> Mark Waite >> >> On Thu, Jan 7, 2016 at 6:07 AM iostrym <arman...@gmail.com> wrote: >> >>> Hi, >>> >>> We have a TCL script that has a GUI that is executed by Jenkins using a >>> shell script in the job. >>> >>> Then we have to use : >>> >>> export DISPLAY=:<PORT_NUMBER> >>> >>> I used things like that to try to avoid the use of a port number that is >>> already used by someone else or by another job : >>> >>> export DISPLAY=:`expr "$BUILD_NUMBER" + "100"` >>> >>> Is there a clean way in the jenkins shell script to get a port_number >>> that is free ? so that the job will never fail because of a port_number >>> already existant... >>> >>> thanks a lot. >>> >>> -- >>> 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-use...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/cf57c04e-f94c-4b2b-9bcf-c1731ef0c9aa%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/cf57c04e-f94c-4b2b-9bcf-c1731ef0c9aa%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/29e03fd5-524d-4b5e-8f35-0049e79f3e21%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.