hudson.plugins.plot
Class PlotPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by hudson.plugins.plot.AbstractPlotPublisher
                  extended by hudson.plugins.plot.PlotPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class PlotPublisher
extends AbstractPlotPublisher

Records the plot data for builds.

Author:
Nigel Daley

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static PlotDescriptor DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
PlotPublisher()
           
 
Method Summary
 void addPlot(Plot plot)
          Adds the new plot to the plot data structures managed by this object.
 hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
          Called by Jenkins.
 List<String> getOriginalGroups()
          Returns all group names as the original user specified strings.
 List<Plot> getPlots()
          Returns the entire list of plots managed by this object.
 List<Plot> getPlots(String urlGroup)
          Returns the list of plots with the given group name.
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
          Called by Jenkins.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          Called by Jenkins when a build is finishing.
 void setPlots(List<Plot> plots)
          Replaces the plots managed by this object with the given list.
 String urlGroupToOriginalGroup(String urlGroup)
          Converts a URL friendly plot group name to the original group name.
 
Methods inherited from class hudson.plugins.plot.AbstractPlotPublisher
getRequiredMonitorService, originalGroupToUrlEncodedGroup, originalGroupToUrlGroup
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

public static final PlotDescriptor DESCRIPTOR
Constructor Detail

PlotPublisher

public PlotPublisher()
Method Detail

urlGroupToOriginalGroup

public String urlGroupToOriginalGroup(String urlGroup)
Converts a URL friendly plot group name to the original group name. If the given urlGroup doesn't already exist then the empty string will be returned.


getOriginalGroups

public List<String> getOriginalGroups()
Returns all group names as the original user specified strings.


setPlots

public void setPlots(List<Plot> plots)
Replaces the plots managed by this object with the given list.

Parameters:
plots - the new list of plots

addPlot

public void addPlot(Plot plot)
Adds the new plot to the plot data structures managed by this object.

Parameters:
plot - the new plot

getPlots

public List<Plot> getPlots()
Returns the entire list of plots managed by this object.


getPlots

public List<Plot> getPlots(String urlGroup)
Returns the list of plots with the given group name. The given group must be the URL friendly form of the group name.


getProjectAction

public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
Called by Jenkins.

Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer

getDescriptor

public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
Called by Jenkins.

Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Recorder

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws IOException,
                       InterruptedException
Called by Jenkins when a build is finishing.

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
IOException
InterruptedException


Copyright © 2004-2014. All Rights Reserved.