Klasse CommitDecoratorFactory

java.lang.Object
io.jenkins.plugins.forensics.util.CommitDecoratorFactory
Alle implementierten Schnittstellen:
ExtensionPoint

public abstract class CommitDecoratorFactory extends Object implements ExtensionPoint
Jenkins' extension point that allows plugins to create CommitDecorator instances based on a supported SCM and RepositoryBrowser.
Autor:
Ullrich Hafner
  • Konstruktordetails

    • CommitDecoratorFactory

      public CommitDecoratorFactory()
  • Methodendetails

    • createCommitDecorator

      public abstract Optional<CommitDecorator> createCommitDecorator(SCM scm, edu.hm.hafner.util.FilteredLog logger)
      Returns a commit decorator for the specified SCM and the associated RepositoryBrowser.
      Parameter:
      scm - the SCM to create the commit decorator for
      logger - a logger to report error messages
      Gibt zurück:
      a commit decorator for the specified SCM and the associated RepositoryBrowser
    • findCommitDecorator

      public static CommitDecorator findCommitDecorator(SCM scm, edu.hm.hafner.util.FilteredLog logger)
      Returns a commit decorator for the specified scm.
      Parameter:
      scm - the SCM to get the decorator for
      logger - a logger to report error messages
      Gibt zurück:
      a commit decorator for the specified SCM or a CommitDecorator.NullDecorator if the SCM is not supported or if the SCM does not provide a RepositoryBrowser implementation
    • findCommitDecorator

      public static CommitDecorator findCommitDecorator(Run<?,?> run)
      Returns a commit decorator for the specified build.
      Parameter:
      run - the current build
      Gibt zurück:
      a commit decorator for the SCM of the specified build or a CommitDecorator.NullDecorator if the SCM is not supported or if the SCM does not provide a RepositoryBrowser implementation