adding getter for serverName

Fix for https://issues.jenkins-ci.org/browse/JENKINS-21580