Class MinerFactory

java.lang.Object
io.jenkins.plugins.forensics.miner.MinerFactory
All Implemented Interfaces:
ExtensionPoint

public abstract class MinerFactory extends Object implements ExtensionPoint
Jenkins extension point that allows plugins to create RepositoryMiner instances based on a supported SCM.
Author:
Ullrich Hafner
  • Constructor Details

    • MinerFactory

      public MinerFactory()
  • Method Details

    • createMiner

      public abstract Optional<RepositoryMiner> createMiner(SCM scm, Run<?,?> run, FilePath workspace, TaskListener listener, edu.hm.hafner.util.FilteredLog logger)
      Returns a repository miner for the specified SCM.
      Parameters:
      scm - the SCM to create the miner for
      run - the current build
      workspace - the workspace of the current build
      listener - a task listener
      logger - a logger to report error messages
      Returns:
      a repository miner instance that creates statistics for all available files in the specified SCM