Closed sfransen closed 3 weeks ago
@sfransen I can not reproduce the badge extending out of the build history and breaking the main view as you describe it. Would you mind sharing a screenshot?
To me everything looks normal and as expected:
It is true that badges are not separated by a newline but to my understanding this is intentional and the badge-plugin is not in control of it. The arrangement of the badges is delegated towards the build history which is defined in the core. I know that there have been some changes in the past to actually improve the situation (https://github.com/jenkinsci/jenkins/pull/9148 and https://github.com/jenkinsci/jenkins/pull/9693 for example).
I was able to have a newline between each badge by adding style: 'display: block; width: 100%; text-align: right;'
- there might be other ways to achieve the same result but this worked for me:
Closing this task for now. Feel free to re-open if you have questions or can provide more details on the bug you noticed.
Jenkins and plugins versions report
The addSummary and addBadge doesn't make a new line everything is warps as one block of text that extents too far out onto the main jenkins page. It is not contains inside of the Builds block
What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins Host on both AWS Ubuntu 20.04 and Mac 14.6.1 (23G93) Apple M1 Max I ran it on the host and client same result
Reproduction steps
if have tried these 3 commands
call Post_Build multi times and you just have one large block of text and it should be one line after another I tried adding html and new line and other to try and fix the bad text it is posting on jenkins now
Expected Results
It should add one line at a time and wrap inside of the build block if too long to fix in the block size
Actual Results
the text extend way out onto the main jenkins build page and doesn't stay inside of th Build block
Anything else?
No response
Are you interested in contributing a fix?
No response