Package hudson.plugins.plot
Class MatrixPlotPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- hudson.plugins.plot.AbstractPlotPublisher
-
- hudson.plugins.plot.MatrixPlotPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class MatrixPlotPublisher extends AbstractPlotPublisher
- Author:
- lucinka
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatrixPlotPublisher.DescriptorImpl
-
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 MatrixPlotPublisher.DescriptorImpl
DESCRIPTOR
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description MatrixPlotPublisher()
-
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(hudson.matrix.MatrixConfiguration configuration)
Returns all group names as the original user specified strings.List<Plot>
getPlots()
List<Plot>
getPlots(hudson.matrix.MatrixConfiguration configuration)
Returns the entire list of plots managed by this object.List<Plot>
getPlots(String urlGroup, hudson.matrix.MatrixConfiguration configuration)
Returns the list of plots with the given group name.Action
getProjectAction(AbstractProject<?,?> project)
Called by Jenkins.boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
boolean
prebuild(AbstractBuild<?,?> build, BuildListener listener)
void
setPlots(List<Plot> plots)
Reset Configuration and set plots settings for matrixConfigurationString
urlGroupToOriginalGroup(String urlGroup, hudson.matrix.MatrixConfiguration c)
-
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
-
-
-
-
Field Detail
-
DESCRIPTOR
@Extension public static final MatrixPlotPublisher.DescriptorImpl DESCRIPTOR
-
-
Method Detail
-
urlGroupToOriginalGroup
public String urlGroupToOriginalGroup(String urlGroup, hudson.matrix.MatrixConfiguration c)
-
getOriginalGroups
public List<String> getOriginalGroups(hudson.matrix.MatrixConfiguration configuration)
Returns all group names as the original user specified strings.
-
setPlots
public void setPlots(List<Plot> plots)
Reset Configuration and set plots settings for matrixConfiguration- 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(hudson.matrix.MatrixConfiguration configuration)
Returns the entire list of plots managed by this object.
-
getPlots
public List<Plot> getPlots(String urlGroup, hudson.matrix.MatrixConfiguration configuration)
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 Action getProjectAction(AbstractProject<?,?> project)
Called by Jenkins.- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
prebuild
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
- Specified by:
prebuild
in interfaceBuildStep
- Overrides:
prebuild
in classBuildStepCompatibilityLayer
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
IOException
InterruptedException
-
getDescriptor
public BuildStepDescriptor<Publisher> getDescriptor()
Called by Jenkins.- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
-