mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
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:
1 parent
9cc14f70e9
commit
66fdd0d2e9
3 files changed
+9
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user