public abstract class MinerFactory extends Object implements hudson.ExtensionPoint
RepositoryMiner instances based on a supported SCM.| Constructor and Description |
|---|
MinerFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Optional<RepositoryMiner> |
createMiner(hudson.scm.SCM scm,
hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
edu.hm.hafner.util.FilteredLog logger)
Returns a repository miner for the specified
SCM. |
static RepositoryMiner |
findMiner(hudson.model.Run<?,?> run,
Collection<hudson.FilePath> scmDirectories,
hudson.model.TaskListener listener,
edu.hm.hafner.util.FilteredLog logger)
Returns a miner for the repository of the specified
build. |
public abstract Optional<RepositoryMiner> createMiner(hudson.scm.SCM scm, hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, edu.hm.hafner.util.FilteredLog logger)
SCM.scm - the SCM to create the miner forrun - the current buildworkspace - the workspace of the current buildlistener - a task listenerlogger - a logger to report error messagesSCMpublic static RepositoryMiner findMiner(hudson.model.Run<?,?> run, Collection<hudson.FilePath> scmDirectories, hudson.model.TaskListener listener, edu.hm.hafner.util.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–2020. All rights reserved.