org.hudsonci.maven.plugin.dependencymonitor
Class DependencyNotifier

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by org.hudsonci.maven.plugin.dependencymonitor.DependencyNotifier
All Implemented Interfaces:
ExtensionPoint, MatrixAggregatable, DependecyDeclarer, Describable<Publisher>, BuildStep

public class DependencyNotifier
extends Notifier
implements DependecyDeclarer, MatrixAggregatable

Notify the DependencyMonitor after a build has completed about produced and consumed Maven artifacts. Projects which notify are artifact producers.

Since:
2.1.0
Author:
Jason Dillon

Nested Class Summary
static class DependencyNotifier.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
DependencyNotifier(boolean notifyIfUnstable)
           
 
Method Summary
 void buildDependencyGraph(AbstractProject project, DependencyGraph graph)
          Delegate to the DependencyMonitor to build the graph of projects which depend on the given project.
 MatrixAggregator createAggregator(MatrixBuild build, Launcher launcher, BuildListener listener)
           
 DependencyNotifier.DescriptorImpl getDescriptor()
           
 BuildStepMonitor getRequiredMonitorService()
           
 Result getResultThreshold()
           
 boolean isNotifyIfUnstable()
           
 boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRun, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Constructor Detail

DependencyNotifier

@DataBoundConstructor
public DependencyNotifier(boolean notifyIfUnstable)
Method Detail

getDescriptor

public DependencyNotifier.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface Describable<Publisher>
Overrides:
getDescriptor in class Notifier

isNotifyIfUnstable

@JellyAccessible
public boolean isNotifyIfUnstable()

getResultThreshold

public Result getResultThreshold()

getRequiredMonitorService

public BuildStepMonitor getRequiredMonitorService()
Specified by:
getRequiredMonitorService in interface BuildStep

perform

public boolean perform(AbstractBuild<?,?> build,
                       Launcher launcher,
                       BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface BuildStep
Overrides:
perform in class BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException
See Also:
BuildArtifactsUpdater.onCompleted(hudson.model.AbstractBuild, hudson.model.TaskListener)

createAggregator

public MatrixAggregator createAggregator(MatrixBuild build,
                                         Launcher launcher,
                                         BuildListener listener)
Specified by:
createAggregator in interface MatrixAggregatable

buildDependencyGraph

public void buildDependencyGraph(AbstractProject project,
                                 DependencyGraph graph)
Delegate to the DependencyMonitor to build the graph of projects which depend on the given project.

Specified by:
buildDependencyGraph in interface DependecyDeclarer


Copyright © 2004-2011 Hudson. All Rights Reserved.