Class BuildTriggerBadgeProvider

java.lang.Object
org.jenkinsci.plugins.buildtriggerbadge.provider.BuildTriggerBadgeProvider
All Implemented Interfaces:
ExtensionPoint

public abstract class BuildTriggerBadgeProvider extends Object implements ExtensionPoint
Extend this class to be able to define/override an association between a class and an icon. This will then add that icon as a badge in the build history side panel.

Note : if many providers are found, the first one matching a given cause class will be used.

Author:
Baptiste Mathus
See Also:
  • Constructor Details

    • BuildTriggerBadgeProvider

      public BuildTriggerBadgeProvider()
  • Method Details

    • provideIcon

      @CheckForNull public abstract String provideIcon(@NonNull Cause cause)
      Should return the Jenkins Symbol or URL to the icon corresponding to the given cause.
      Returns:
      the symbol or URL of the icon for that cause, null if none provided.
    • all