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>
  • 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 event
      command - the command.
    • fireOnCompleted

      public static void fireOnCompleted(BuildMemory.MemoryImprint memoryImprint, String command)
      Fire onCompleted.
      Parameters:
      memoryImprint - the memoryimprint.
      command - the command.
    • all

      Gets all listeners.
      Returns:
      the extension list.