Klasse DeltaCalculatorFactory
java.lang.Object
io.jenkins.plugins.forensics.delta.DeltaCalculatorFactory
- Alle implementierten Schnittstellen:
ExtensionPoint
Jenkins' extension point that allows plugins to create
DeltaCalculator
instances based on a supported SCM
.- Autor:
- Florian Orendi
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract Optional
<DeltaCalculator> createDeltaCalculator
(SCM scm, Run<?, ?> run, FilePath workspace, TaskListener listener, edu.hm.hafner.util.FilteredLog logger) Returns aDeltaCalculator
for the specifiedSCM
.static DeltaCalculator
findDeltaCalculator
(Run<?, ?> run, Collection<FilePath> scmDirectories, TaskListener listener, edu.hm.hafner.util.FilteredLog logger) Returns aDeltaCalculator
for the specifiedbuild
.static DeltaCalculator
findDeltaCalculator
(String scm, Run<?, ?> run, FilePath workTree, TaskListener listener, edu.hm.hafner.util.FilteredLog logger) Returns aDeltaCalculator
for the specifiedrepository
.
-
Konstruktordetails
-
DeltaCalculatorFactory
public DeltaCalculatorFactory()
-
-
Methodendetails
-
findDeltaCalculator
public static DeltaCalculator findDeltaCalculator(Run<?, ?> run, Collection<FilePath> scmDirectories, TaskListener listener, edu.hm.hafner.util.FilteredLog logger) Returns aDeltaCalculator
for the specifiedbuild
.- Parameter:
run
- the current buildscmDirectories
- paths to search for the SCM repositorylistener
- a task listenerlogger
- 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 aDeltaCalculator
for the specifiedrepository
.- Parameter:
scm
- the key of the SCM repository (substring that must be part of the SCM key)run
- the current buildworkTree
- the working tree of the repositorylistener
- a task listenerlogger
- 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 aDeltaCalculator
for the specifiedSCM
.- Parameter:
scm
- theSCM
to create the delta calculator forrun
- the current buildworkspace
- the workspace of the current buildlistener
- a task listenerlogger
- a logger to report error messages- Gibt zurück:
- a matching delta calculator instance
-