badge-plugin icon indicating copy to clipboard operation
badge-plugin copied to clipboard

Display Build Badges on the Build Page Header

Open henriduflot opened this issue 6 months ago • 5 comments

What feature do you want to see added?

Currently, the Jenkins Badge Plugin displays badges only on the job page, specifically in the build history section. While this is useful, it would be even more beneficial to have these badges displayed directly on the build page itself.

Image

Proposed Feature

Add the ability to display badges at the top of the build page, alongside the build name and optional description. This would provide a more consistent and visible way to access badge information for a specific build.

Image

Benefits:

Improves visibility of badges for individual builds. Provides a more intuitive and user-friendly experience. Reduces the need to navigate back to the job page to view badges.

Thank you for considering this feature request! Let me know if you need further clarification or additional details.

Upstream changes

No response

Are you interested in contributing this feature?

I currently do not have the technical skills to implement this feature myself.

henriduflot avatar May 13 '25 11:05 henriduflot

I quite like the idea but need to figure out if there is a customization endpoint we can attach badges to.

@janfaracik @timja Could you maybe give me a pointer how to approach this?

strangelookingnerd avatar May 13 '25 12:05 strangelookingnerd

Currently you'd need to explicitly add it to the Pipeline Graph View plugin - we don't have a way for plugins to contribute AFAIK just yet. Might be a good addition @timja?

janfaracik avatar May 13 '25 13:05 janfaracik

yes I'm wondering if we're ready for extension points yet or if it depends more on any core build page re-work / improvements in pipeline-graph-view.

timja avatar May 13 '25 15:05 timja

Personally I'd think that it would not be the worst idea to "mirror" the information from the build history and also show it on the build status alongside the graph view, summary, etc. Since build number, time and status are already there, adding badges as well would only make sense, don't you think?

Another approach would be to also add the build history to the build page of a job the same way it is done on the main page. However that could get messy with the amount of menu entries a job can have.

Looking a little closer at both, core implementation and the one from Pipeline Graph View plugin, I would rather try and implement either of it in core. However your experience in Jenkins UI/UX is very much appreciated, so what do you think would be the best way to move this forward?

strangelookingnerd avatar May 13 '25 19:05 strangelookingnerd

I mean the specific page isn’t even pipeline graph view that’s the build page.

Might be possible already to add it there

timja avatar May 13 '25 20:05 timja