Quoting iostrym <[email protected]>:

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.


Try this: https://wiki.jenkins-ci.org/display/JENKINS/Port+Allocator+Plugin


Sorry, you asked for a free port number, but that's not really what you want.

As suggested, you should use https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin

--
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20160107175703.Horde.f5atShauknlWjqbvv2UXTPA%40mail.a1.org.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to