Change By: Christopher Orr (27/Mar/15 8:49 AM)
Description: h4. Background
Regardless of whether the ongoing Java version upgrade debate settles on Java 7 or Java 8, we should do as much as possible to advise users (as long as possible) in advance of the upcoming Java upgrade requirement.

Yes, people should ideally have a test environment and test every single Jenkins upgrade, so it's "their fault" if an upgrade goes bad, but we also have a diverse and large (100K!) userbase, plus a shiny "Upgrade automatically" button in the UI.  So there will likely be a substantial number of people who will hit the button and complain loudly when Jenkins does not come up again due to an outdated JDK.  There will also be people who upgrade automatically via a package manager (i.e. might not check the changelog on the website), or by downloading the WAR from the home page (but may not click through to the changelog).

h4. Feature request
So, it would be nice if there was a way to notify users directly within the Jenkins UI.
We already show warnings on the Manage Jenkins page, based on the current state of the installation (e.g. outdated config files, broken reverse proxy, encryption re-key required).

But it would be nice to have messages that we can add (and remove) dynamically.  For a Java upgrade warning, or for security advisories, for example.

This could be implemented by editing a JSON file that lives on updates.jenkins-ci.org (i.e. probably held in git and deployed by J-o-J) and gets fetched regularly by Jenkins, or by (somehow) adding another JSON object to the {{update-center.json}}.

It should be possible to make messages time-limited ("display until end of 2015-03-31"), and version-limited ("display if version >= 1.599 && version <= 1.606").  Optional extras could include a Java version restriction ("only show if JRE < 8"), a platform check ("only show on Windows"), or perhaps installation source ("only show for .rpm users" (not sure we can figure that out)).  The Java check would be the most useful one just now.

Messages should be shown at the top on the Manage Jenkins page.  It may be a nice addition if there was a "message type" field that allowed more urgent messages to be shown at the top of each page (similar to how "Jenkins is about to shut down" appears), though those should be dismissable (e.g. by storing a flag in a cookie).
Messages should probably be visible only to people with {{Jenkins#ADMINISTER}} permission.  Or to everybody, if there is no authentication enabled (i.e. small installations, where it's probably fine to show this to all users).

So, as mentioned, I think this would be very useful for the Java upgrade scenario
 ( , i.e. show the message "(!) Notice: Jenkins will soon require a modern Java version: see <a href=""> ) .

But this would also be generically useful in the future, e.g. for security advisories (
e.g. like  the really urgent ones this week), or for time-limited messages that should not be hardcoded into the WAR file and should preferably not require an upgrade to remove them (e.g. the "Jenkins 100K" sidebar link, the "1.387" background change etc.).
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to