Package hudson.plugins.plot
Class PlotPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- hudson.plugins.plot.AbstractPlotPublisher
-
- hudson.plugins.plot.PlotPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,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
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static PlotDescriptor
DESCRIPTOR
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description PlotPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPlot(Plot plot)
Adds the new plot to the plot data structures managed by this object.BuildStepDescriptor<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.Action
getProjectAction(AbstractProject<?,?> project)
Called by Jenkins.BuildStepMonitor
getRequiredMonitorService()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, 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
originalGroupToUrlEncodedGroup, originalGroupToUrlGroup
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
-
-
-
-
Field Detail
-
DESCRIPTOR
public static final PlotDescriptor DESCRIPTOR
-
-
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
-
getProjectAction
public Action getProjectAction(AbstractProject<?,?> project)
Called by Jenkins.- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
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.
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
Called by Jenkins when a build is finishing.- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
IOException
InterruptedException
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Overrides:
getRequiredMonitorService
in classAbstractPlotPublisher
-
getDescriptor
public BuildStepDescriptor<Publisher> getDescriptor()
Called by Jenkins.- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
-