com.dabsquared.gitlabjenkins
Class GitLabRunListener

java.lang.Object
  extended by hudson.model.listeners.RunListener<hudson.model.AbstractBuild>
      extended by com.dabsquared.gitlabjenkins.GitLabRunListener
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class GitLabRunListener
extends hudson.model.listeners.RunListener<hudson.model.AbstractBuild>

RunListener that will be called when a build starts and completes. Will lookup GitLabPushTrigger and call onStarted and onCompleted methods in order to have access to the build and set properties.


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType
 
Constructor Summary
GitLabRunListener()
           
 
Method Summary
 void onCompleted(hudson.model.AbstractBuild abstractBuild, hudson.model.TaskListener listener)
           
 void onStarted(hudson.model.AbstractBuild abstractBuild, hudson.model.TaskListener listener)
           
 
Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireStarted, onDeleted, onFinalized, register, setUpEnvironment, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitLabRunListener

public GitLabRunListener()
Method Detail

onCompleted

public void onCompleted(hudson.model.AbstractBuild abstractBuild,
                        @Nonnull
                        hudson.model.TaskListener listener)
Overrides:
onCompleted in class hudson.model.listeners.RunListener<hudson.model.AbstractBuild>

onStarted

public void onStarted(hudson.model.AbstractBuild abstractBuild,
                      hudson.model.TaskListener listener)
Overrides:
onStarted in class hudson.model.listeners.RunListener<hudson.model.AbstractBuild>


Copyright © 2004-2015. All Rights Reserved.