Class Office365ConnectorBuildListener

java.lang.Object
hudson.model.listeners.RunListener<Run>
jenkins.plugins.office365connector.workflow.Office365ConnectorBuildListener
All Implemented Interfaces:
ExtensionPoint

@Extension public class Office365ConnectorBuildListener extends RunListener<Run>
Office365ConnectorBuildListener RunListener.

When a build starts, the onStarted(Run, TaskListener) method will be invoked. And when a build finishes, the onCompleted(Run, TaskListener) method will be invoked.

Author:
Srivardhan Hebbar
  • Constructor Details

    • Office365ConnectorBuildListener

      public Office365ConnectorBuildListener()
  • Method Details

    • onStarted

      public void onStarted(Run run, TaskListener listener)
      Called when a build is first started.
      Overrides:
      onStarted in class RunListener<Run>
      Parameters:
      run - - A Run object representing a particular execution of Job.
      listener - - A TaskListener object which receives events that happen during some operation.
    • onCompleted

      public void onCompleted(Run run, @NonNull TaskListener listener)
      Called when a build is completed.
      Overrides:
      onCompleted in class RunListener<Run>
      Parameters:
      run - - A Run object representing a particular execution of Job.
      listener - - A TaskListener object which receives events that happen during some operation.