Klasse DeltaCalculatorFactory

java.lang.Object
io.jenkins.plugins.forensics.delta.DeltaCalculatorFactory
Alle implementierten Schnittstellen:
ExtensionPoint

public abstract class DeltaCalculatorFactory extends Object implements ExtensionPoint
Jenkins' extension point that allows plugins to create DeltaCalculator instances based on a supported SCM.
Autor:
Florian Orendi
  • Konstruktordetails

    • DeltaCalculatorFactory

      public DeltaCalculatorFactory()
  • Methodendetails

    • findDeltaCalculator

      public static DeltaCalculator findDeltaCalculator(Run<?,?> run, Collection<FilePath> scmDirectories, TaskListener listener, edu.hm.hafner.util.FilteredLog logger)
      Returns a DeltaCalculator for the specified build.
      Parameter:
      run - the current build
      scmDirectories - paths to search for the SCM repository
      listener - a task listener
      logger - a logger to report error messages
      Gibt zurück:
      a delta calculator for the SCM of the specified build or a DeltaCalculator.NullDeltaCalculator if the SCM is not supported
    • findDeltaCalculator

      public static DeltaCalculator findDeltaCalculator(String scm, Run<?,?> run, FilePath workTree, TaskListener listener, edu.hm.hafner.util.FilteredLog logger)
      Returns a DeltaCalculator for the specified repository.
      Parameter:
      scm - the key of the SCM repository (substring that must be part of the SCM key)
      run - the current build
      workTree - the working tree of the repository
      listener - a task listener
      logger - a logger to report error messages
      Gibt zurück:
      a delta calculator for the SCM of the specified build or a DeltaCalculator.NullDeltaCalculator if the SCM is not supported
    • createDeltaCalculator

      public abstract Optional<DeltaCalculator> createDeltaCalculator(SCM scm, Run<?,?> run, FilePath workspace, TaskListener listener, edu.hm.hafner.util.FilteredLog logger)
      Returns a DeltaCalculator for the specified SCM.
      Parameter:
      scm - the SCM to create the delta calculator for
      run - the current build
      workspace - the workspace of the current build
      listener - a task listener
      logger - a logger to report error messages
      Gibt zurück:
      a matching delta calculator instance