Quoting iostrym <armandoo...@gmail.com>:

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

--
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/20160107175220.Horde.dtKqahauknlWjqXUKXuHRYA%40mail.a1.org.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to