Daniel Beck edited a comment on Bug JENKINS-24407

Reproduced the issue with the data provided by K P: The 87% (worst health) HealthReport in question was serialized to disk from before the icon classname field existed (attached build.xml starting at line 581), and deserialization does not call the constructor, leaving the field null, hence no icon.

There's no implementation of readResolve() in HealthReport, and ConverterImpl ignores this issue.

Any builds created after the Jenkins update should contain the field in serialized form, and therefore show up correctly (making reproducing it rather difficult!).

I'm preparing a fix right now.


A workaround for everyone affected and not willing to wait for a fix would be to script changes to affected build.xml files. For every line like this:

<iconUrl>health-80plus.png</iconUrl>

Add a line below like this:


<iconClassName>icon-health-80plus</iconClassName>

Repeat for all other pairs of icon class name/icon URL defined here:
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/HealthReport.java#L50

Then reload configuration from disk.

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