Normalized loading of UpdateCenter/CoreUpdateMonitor/message.properties by moving changelog.url to jenkins-version.properties.

This commit is contained in:
Jesse Glick committed 2020-01-02 17:04:23 -05:00
1 parent 9690e5ab65
commit 0ba0ea93d5
33 files changed
+24 -80

No files matched your search

@@ -5099,6 +5099,8 @@ public class Jenkins extends AbstractCIBase implements DirectlyModifiableTopLeve
VERSION = ver;
context.setAttribute("version",ver);
CHANGELOG_URL = props.getProperty("changelog.url");
VERSION_HASH = Util.getDigestOf(ver).substring(0, 8);
SESSION_HASH = Util.getDigestOf(ver+System.currentTimeMillis()).substring(0, 8);
@@ -5122,6 +5124,9 @@ public class Jenkins extends AbstractCIBase implements DirectlyModifiableTopLeve
*/
public static String VERSION = UNCOMPUTED_VERSION;
@Restricted(NoExternalUse.class)
public static String CHANGELOG_URL;
/**
* Parses {@link #VERSION} into {@link VersionNumber}, or null if it's not parseable as a version number
* (such as when Jenkins is run with {@code mvn jetty:run})