-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Hudson 1.354, Perforce plugin 1.0.28
I get many warnings in log saying something like:
... PerforceSCM getEffectiveClientName
WARNING: Could not get hostname for slave <named-slave>
It obviously knows the name of the slave, but where's it supposed to get the hostname from? Is this not a Perforce issue, but a more general slave issue?
It happens for both Linux and Windows based slaves.
- is blocking
-
JENKINS-15698 Perforce can't get hostname for slaves
-
- Open
-
- is related to
-
JENKINS-29734 use IP address when cannot resolve hostname for slaves
-
- Open
-
It gets the hostname from the slave itself by running java.net.InetAddress.getLocalHost().getHostName(). That warning indicates that for some reason the hostname is set to something that cannot actually be resolved using DNS. I don't know if there's another way to do it, but I'm all ears. The solution currently is to make sure the slave can resolve itself properly.