public abstract class MinerFactory extends Object implements ExtensionPoint
RepositoryMiner instances based on a supported SCM.ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
MinerFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Optional<RepositoryMiner> |
createMiner(SCM scm,
Run<?,?> run,
FilePath workspace,
TaskListener listener,
FilteredLog logger)
Returns a repository miner for the specified
SCM. |
static RepositoryMiner |
findMiner(Run<?,?> run,
Collection<FilePath> scmDirectories,
TaskListener listener,
FilteredLog logger)
Returns a miner for the repository of the specified
build. |
public abstract Optional<RepositoryMiner> createMiner(SCM scm, Run<?,?> run, FilePath workspace, TaskListener listener, FilteredLog logger)
SCM.public static RepositoryMiner findMiner(Run<?,?> run, Collection<FilePath> scmDirectories, TaskListener listener, FilteredLog logger)
build.run - the current buildscmDirectories - paths to search for the SCM repositorylistener - a task listenerlogger - a logger to report error messagesRepositoryMiner.NullMiner if the SCM is not supportedCopyright © 2016–2019. All rights reserved.