hudson.plugins.blazemeter
Class PerformancePublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.plugins.blazemeter.PerformancePublisher
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class PerformancePublisher
- extends hudson.tasks.Notifier
| 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 |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Constructor Summary |
PerformancePublisher(String testDuration,
String mainJMX,
String dataFolder,
String testId,
int errorFailedThreshold,
int errorUnstableThreshold,
int responseTimeFailedThreshold,
int responseTimeUnstableThreshold)
|
| Methods inherited from class hudson.tasks.Publisher |
all, getProjectAction, 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 |
DESCRIPTOR
@Extension
public static final PerformancePublisher.BlazeMeterPerformancePublisherDescriptor DESCRIPTOR
PerformancePublisher
@DataBoundConstructor
public PerformancePublisher(String testDuration,
String mainJMX,
String dataFolder,
String testId,
int errorFailedThreshold,
int errorUnstableThreshold,
int responseTimeFailedThreshold,
int responseTimeUnstableThreshold)
getPerformanceReport
public static File getPerformanceReport(hudson.model.AbstractBuild<?,?> build,
String parserDisplayName,
String performanceReportName)
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getParsers
public List<PerformanceReportParser> getParsers()
getPerformanceReportBuildFileName
public static String getPerformanceReportBuildFileName(String performanceReportWorkspaceName)
Delete the date suffix appended to the Performance result files by the
Maven Performance plugin
- Parameters:
performanceReportWorkspaceName - self explanatory.
- Returns:
- the name of the PerformanceReport in the Build
locatePerformanceReports
protected static List<hudson.FilePath> locatePerformanceReports(hudson.FilePath workspace,
String includes)
throws IOException,
InterruptedException
- look for blazemeter reports based in the configured parameter includes.
'includes' is - an Ant-style pattern - a list of files and folders
separated by the characters ;:,
- Throws:
IOException
InterruptedException
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
readResolve
public Object readResolve()
getResponseTimeFailedThreshold
public int getResponseTimeFailedThreshold()
setResponseTimeFailedThreshold
public void setResponseTimeFailedThreshold(int responseTimeFailedThreshold)
getResponseTimeUnstableThreshold
public int getResponseTimeUnstableThreshold()
setResponseTimeUnstableThreshold
public void setResponseTimeUnstableThreshold(int responseTimeUnstableThreshold)
getTestDuration
public String getTestDuration()
setTestDuration
public void setTestDuration(String testDuration)
getMainJMX
public String getMainJMX()
setMainJMX
public void setMainJMX(String mainJMX)
getDataFolder
public String getDataFolder()
setDataFolder
public void setDataFolder(String dataFolder)
getErrorFailedThreshold
public int getErrorFailedThreshold()
setErrorFailedThreshold
public void setErrorFailedThreshold(int errorFailedThreshold)
getErrorUnstableThreshold
public int getErrorUnstableThreshold()
setErrorUnstableThreshold
public void setErrorUnstableThreshold(int errorUnstableThreshold)
getTestId
public String getTestId()
setTestId
public void setTestId(String testId)
getFilename
public String getFilename()
setFilename
public void setFilename(String filename)
getDescriptor
public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>- Overrides:
getDescriptor in class hudson.tasks.Notifier
Copyright © July 2012-2012 BlazeMeterInc. All Rights Reserved.