mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
failing to parse the version number shouldn't halt the system.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31303 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
f4311e4920
commit
0263abd568
1 file changed
+5
-1
@@ -27,7 +27,11 @@ public class DNSMultiCast implements Closeable {
|
||||
String rootURL = hudson.getRootUrl();
|
||||
if (rootURL!=null)
|
||||
props.put("url", rootURL);
|
||||
props.put("version",Hudson.getVersion().toString());
|
||||
try {
|
||||
props.put("version",String.valueOf(Hudson.getVersion()));
|
||||
} catch (IllegalArgumentException e) {
|
||||
// failed to parse the version number
|
||||
}
|
||||
|
||||
TcpSlaveAgentListener tal = hudson.getTcpSlaveAgentListener();
|
||||
if (tal!=null)
|
||||
|
||||
Reference in new issue
Block a user