Class GerritTriggeredBuildListener
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.extensions.GerritTriggeredBuildListener
- All Implemented Interfaces:
ExtensionPoint
A abstract class for listening Gerrit triggered build result.
- Author:
- rinrinne <rinrin.ne@gmail.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Gets all listeners.static voidfireOnCompleted(BuildMemory.MemoryImprint memoryImprint, String command) Fire onCompleted.static voidfireOnStarted(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command) Fire onStarted.abstract voidonCompleted(Result result, com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command) Calls when all builds completed.abstract voidonStarted(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command) Calls when build started.
-
Constructor Details
-
GerritTriggeredBuildListener
public GerritTriggeredBuildListener()
-
-
Method Details
-
onStarted
public abstract void onStarted(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command) Calls when build started.- Parameters:
event- the event.command- the command.
-
onCompleted
public abstract void onCompleted(Result result, com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command) Calls when all builds completed.- Parameters:
result- the result.event- the event.command- the command.
-
fireOnStarted
public static void fireOnStarted(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command) Fire onStarted.- Parameters:
event- the eventcommand- the command.
-
fireOnCompleted
Fire onCompleted.- Parameters:
memoryImprint- the memoryimprint.command- the command.
-
all
Gets all listeners.- Returns:
- the extension list.
-