Class DisplayURLProvider

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public abstract class DisplayURLProvider
    extends Object
    implements ExtensionPoint
    Generates URLs for well known UI locations for use in notifications (e.g. mailer, HipChat, Slack, IRC, etc) Extensible to allow plugins to override common URLs (e.g. Blue Ocean or another future secondary UI)
    • Constructor Detail

      • DisplayURLProvider

        public DisplayURLProvider()
    • Method Detail

      • getRoot

        public String getRoot()
        Fully qualified URL for the Root display URL
      • getDisplayName

        public String getDisplayName()
        Display name of this provider e.g. "Jenkins Classic", "Blue Ocean", etc
      • getName

        public String getName()
        Name of provider to be used as an id. Do not use i18n
      • getRunURL

        public abstract String getRunURL​(Run<?,​?> run)
        Fully qualified URL for a Run
      • getArtifactsURL

        public String getArtifactsURL​(Run<?,​?> run)
        Fully qualified URL for a page that displays artifacts for a Run.
      • getChangesURL

        public abstract String getChangesURL​(Run<?,​?> run)
        Fully qualified URL for a page that displays changes for a project.
      • getTestsURL

        public abstract String getTestsURL​(Run<?,​?> run)
        Fully qualified URL for a page that displays tests for a Run.
      • getJobURL

        public abstract String getJobURL​(Job<?,​?> job)
        Fully qualified URL for a Jobs home
      • getPreferredProvider

        public static DisplayURLProvider getPreferredProvider()