jenkinsci / badge-plugin

Jenkins Badge plugin
https://plugins.jenkins.io/badge/
MIT License
32 stars 43 forks source link

Possibility to add summaries at the top of the summary page #15

Closed claasd closed 5 years ago

claasd commented 6 years ago

Hi,

when using createSummary(), the summary is always created at the bottom of the overview page. There are always messages from before the pipeline run (e.g. SCM messages) above.

Is it somehow possible to add a summary above those messages?

Thanks.

bakito commented 6 years ago

@claasd

Hi I don't think that is possible. The summaty is added as action to the Job by using the method addAction from https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/Actionable.java

It seems the actions/summaries are displayed in the order they are added to the job. Since SCM is generally the first thing that is done in the job. These messages come first.

claasd commented 6 years ago

Hi,

maybe one could use getActions() and add it as the first one, I will do some experiments. Thanks for the answer.

Best, Claas