Class GerritTriggeredBuildListener
- java.lang.Object
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.extensions.GerritTriggeredBuildListener
-
- All Implemented Interfaces:
ExtensionPoint
public abstract class GerritTriggeredBuildListener extends Object implements 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 Constructor Description GerritTriggeredBuildListener()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<GerritTriggeredBuildListener>
all()
Gets all listeners.static void
fireOnCompleted(BuildMemory.MemoryImprint memoryImprint, String command)
Fire onCompleted.static void
fireOnStarted(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command)
Fire onStarted.abstract void
onCompleted(Result result, com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command)
Calls when all builds completed.abstract void
onStarted(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, String command)
Calls when build started.
-
-
-
Method Detail
-
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
public static void fireOnCompleted(BuildMemory.MemoryImprint memoryImprint, String command)
Fire onCompleted.- Parameters:
memoryImprint
- the memoryimprint.command
- the command.
-
all
public static ExtensionList<GerritTriggeredBuildListener> all()
Gets all listeners.- Returns:
- the extension list.
-
-