Klasse CommitDecoratorFactory
java.lang.Object
io.jenkins.plugins.forensics.util.CommitDecoratorFactory
- Alle implementierten Schnittstellen:
ExtensionPoint
Jenkins' extension point that allows plugins to create
CommitDecorator
instances based on a supported SCM
and RepositoryBrowser
.- Autor:
- Ullrich Hafner
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract Optional
<CommitDecorator> createCommitDecorator
(SCM scm, edu.hm.hafner.util.FilteredLog logger) Returns a commit decorator for the specifiedSCM
and the associatedRepositoryBrowser
.static CommitDecorator
findCommitDecorator
(Run<?, ?> run) Returns a commit decorator for the specifiedbuild
.static CommitDecorator
findCommitDecorator
(SCM scm, edu.hm.hafner.util.FilteredLog logger) Returns a commit decorator for the specifiedscm
.
-
Konstruktordetails
-
CommitDecoratorFactory
public CommitDecoratorFactory()
-
-
Methodendetails
-
createCommitDecorator
public abstract Optional<CommitDecorator> createCommitDecorator(SCM scm, edu.hm.hafner.util.FilteredLog logger) Returns a commit decorator for the specifiedSCM
and the associatedRepositoryBrowser
.- Parameter:
scm
- theSCM
to create the commit decorator forlogger
- a logger to report error messages- Gibt zurück:
- a commit decorator for the specified
SCM
and the associatedRepositoryBrowser
-
findCommitDecorator
Returns a commit decorator for the specifiedscm
.- Parameter:
scm
- the SCM to get the decorator forlogger
- a logger to report error messages- Gibt zurück:
- a commit decorator for the specified SCM or a
CommitDecorator.NullDecorator
if the SCM is not supported or if the SCM does not provide aRepositoryBrowser
implementation
-
findCommitDecorator
Returns a commit decorator for the specifiedbuild
.- Parameter:
run
- the current build- Gibt zurück:
- a commit decorator for the SCM of the specified build or a
CommitDecorator.NullDecorator
if the SCM is not supported or if the SCM does not provide aRepositoryBrowser
implementation
-