jenkinsci / badge-plugin

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

Question: where or how does createSummary look for icons? #68

Closed martinda closed 6 months ago

martinda commented 2 years ago

It is not clear to me where the createSummary step looks for icons or how to properly specify icons.

  1. Specifically, does it look at the new Symbols
  2. Does this plugin need a migration as described in Icon path to icon class migration
  3. The example in README uses /static/8361d0d6/images/16x16/help.png but how do I write common code with this when the Pipeline library is used on multiple different servers?

Thank you

mill1000 commented 8 months ago

I found I was able to successfully use symbols with the following

script {
    summary = createSummary icon: 'icon-document icon-md'
    summary.appendText("Stuff")
}