I have 4 execution slots on my master node which run similar jobs. I'd like to have access to the number of the slot that a build is running on that I can use it calculate a port offset for each build so that there is no clash of ports.
Had a quick look at the API doc http://javadoc.jenkins-ci.org but could not find anything. Could any one point me in the right direction?