implemented #526 "Track the version of hudson used for each build"

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3314 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-05-13 17:59:23 +00:00
1 parent 9cc14f70e9
commit 66fdd0d2e9
3 files changed
+9 -1

No files matched your search

+2 -1
View File
@@ -96,8 +96,9 @@ public class WebAppMain implements ServletContextListener {
} catch (IOException e) {
e.printStackTrace(); // if the version properties is missing, that's OK.
}
Object ver = props.get("version");
String ver = props.getProperty("version");
if(ver==null) ver="?";
Hudson.VERSION = ver;
context.setAttribute("version",ver);
Trigger.init(); // start running trigger