The plugin supports symbols from the ionicons library through the ionicons-api-plugin. More symbols can be added by installing additional plugins, such as font-awesome-api-plugin or custom-folder-icon-plugin. Symbols are referenced as "symbol-icon-name plugin-plugin-name". For example, the following are all valid references to symbols from the ionicons library:
addBadge icon: 'symbol-alert-circle-outline plugin-ionicons-api', text: 'This is an alert symbol'
addBadge icon: 'symbol-bar-chart-filled plugin-ionicons-api', text: 'This is a bar chart symbol'
addBadge icon: 'symbol-battery-half-sharp plugin-ionicons-api', text: 'This is a half filled battery symbol'
addBadge icon: 'symbol-flag-outline plugin-ionicons-api', text: 'This is a flag symbol'
addBadge icon: 'symbol-mic plugin-ionicons-api', text: 'This is a microphone symbol'
addBadge icon: 'symbol-rocket-filled plugin-ionicons-api', text: 'This is a rocket'
addBadge icon: 'symbol-unlink-sharp plugin-ionicons-api', text: 'This is an unlink symbol'
The plugin supports the 16x16 icons that are offered by Jenkins. The plugin includes a group of icons as GIF images. Icons provided by the plugin are listed in the plugin documentation and are referenced as "image-name.gif". For example, the following are all valid references to icons included with the plugin:
addBadge icon: 'completed.gif', text: 'This is a completed symbol'
addBadge icon: 'delete.gif', text: 'This is a delete icon'
addBadge icon: 'save.gif', text: 'This is a save icon'
addBadge icon: 'success.gif', text: 'This is a success icon'
addBadge icon: 'warning.gif', text: 'This is a warning icon'