In jenkins 2.440, after the default installation, I created a project and executed the copy command with the Execute Windows batch command in the build steps.
Previously, the build history was single-line, but now it is multi-line.
I have one-line and two-line entries mixed on the same page.
Same in Firefox and Edge, with the twist, that different lines are single or double in FF or Edge. But it is consistent in the same browser. If I open the same project page in FF and then again in a private window in FF, I get the same output (with some build numbers in one line, others in two). Same in Edge (normal and private window, both showing same output)
The current implementation gives a percentage of the width to the build number, the timestamp and optional badges. The logic is quite complex when it tries to decide if it should put everything in one line or in multiple lines and is not doing a good job here.
The new implementation will be much better in this respect.
The behaviour is different because font size might be slightly different between firefox and chrome. The decision if single or multi line can be caused just by 1 px difference in length
Who is making this decision?
I looked at the HTML and the twoline items have a different class than the one line items.
So the server is making it different. Which begs the question, why does it send different HTML to different browsers?
Seems like a super complicated code for what is basically “show two links (and an icon)”.
There can be more than 2 links and an icon. A run can have a different displayname then you no longer have e.g. #3223 but something link my important run, builds can have badges, e.g. when you decide to keep a build forever, it gets an icon, there are plugins that add other badges, e.g. what triggered the build (human, timer, github event, gerrit event, …).
A build can have a description which is shown on an extra line.
The existing logic is limited and as you noticed produces far from optimal results.
You find it here:
But the mentioned pull request will fix those things.