saucelabs / bamboo_sauce

Bamboo plugin for use with Sauce OnDemand
11 stars 5 forks source link

generate random port #48

Closed seanenright closed 4 years ago

seanenright commented 4 years ago

if users run multiple builds in parallel after setting the the selenium host as 0 (to generate a random port) the plugin often generates the same port for each build causing sauce connect to crash.

Solution: remove the breaking code. if the selenium host is 0, sauce connect will look for an open port to run on. The code removed was forcing sauce connect to use a specific port that may not be available at the time sauce connect is launched, especially if multiple tunnels are started simultaneously.