Class GerritMessageProvider
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.GerritMessageProvider
- All Implemented Interfaces:
ExtensionPoint,Serializable
ExtensionPoint that allows other plug-ins to provide custom messages.
- Author:
- Gustaf Lundh <gustaf.lundh@sonymobile.com>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<GerritMessageProvider>all()Method fetching instances of ExtensionPoints implementing GerritMessageProvider.Deprecated.getBuildCompletedMessage(Run build) Method allowing plug-ins to provide extra custom messages to Gerrit when a build is completed.Deprecated.getBuildStartedMessage(Run build) Method allowing plug-ins to provide extra custom messages to Gerrit when a build is started.Collection<com.sonymobile.tools.gerrit.gerritevents.dto.rest.CommentedFile>getFileComments(AbstractBuild build) Deprecated.Collection<com.sonymobile.tools.gerrit.gerritevents.dto.rest.CommentedFile>getFileComments(Run build) Provide any file comments.
-
Constructor Details
-
GerritMessageProvider
public GerritMessageProvider()
-
-
Method Details
-
getBuildStartedMessage
Method allowing plug-ins to provide extra custom messages to Gerrit when a build is started. Return null if no message should be added.- Parameters:
build- Triggered build to provide custom message for- Returns:
- the custom message
-
getBuildStartedMessage
Deprecated.Method allowing plug-ins to provide extra custom messages to Gerrit when a build is started. Return null if no message should be added.- Parameters:
build- Triggered build to provide custom message for- Returns:
- the custom message
-
getBuildCompletedMessage
Method allowing plug-ins to provide extra custom messages to Gerrit when a build is completed. Return null if no message should be added.- Parameters:
build- Triggered build to provide custom message for- Returns:
- the custom message
-
getBuildCompletedMessage
Deprecated.Method allowing plug-ins to provide extra custom messages to Gerrit when a build is completed. Return null if no message should be added.- Parameters:
build- Triggered build to provide custom message for- Returns:
- the custom message
-
getFileComments
public Collection<com.sonymobile.tools.gerrit.gerritevents.dto.rest.CommentedFile> getFileComments(Run build) Provide any file comments.- Parameters:
build- the build to complain about- Returns:
- the file comments, default is an empty list.
-
getFileComments
@Deprecated public Collection<com.sonymobile.tools.gerrit.gerritevents.dto.rest.CommentedFile> getFileComments(AbstractBuild build) Deprecated.Provide any file comments.- Parameters:
build- the build to complain about- Returns:
- the file comments, default is an empty list.
-
all
Method fetching instances of ExtensionPoints implementing GerritMessageProvider.- Returns:
- list of classes extending GerritMessageProvider
-
getBuildCompletedMessage(hudson.model.Run)