Package hudson.plugins.performance
Class PerformancePublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.plugins.performance.PerformancePublisher
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final doubleFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionPerformancePublisher(String sourceDataFiles) PerformancePublisher(String sourceDataFiles, int errorFailedThreshold, int errorUnstableThreshold, String errorUnstableResponseTimeThreshold, double relativeFailedThresholdPositive, double relativeFailedThresholdNegative, double relativeUnstableThresholdPositive, double relativeUnstableThresholdNegative, int nthBuildNumber, boolean modePerformancePerTestCase, String configType, boolean modeOfThreshold, boolean failBuildIfNoResultFile, boolean compareBuildPrevious, boolean modeThroughput, boolean showTrendGraphs, List<PerformanceReportParser> parsers) Legacy constructor used for internal references. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMapping classes after refactoring for backward compatibility.voidcompareWithAbsoluteThreshold(Run<?, ?> run, TaskListener listener, Collection<PerformanceReport> parsedReports) voidcompareWithRelativeThreshold(Run<?, ?> run, FilePath workspace, TaskListener listener, List<PerformanceReportParser> parsers) voidevaluateInExpertMode(Run<?, ?> run, FilePath workspace, TaskListener listener) voidevaluateInStandardMode(Run<?, ?> run, FilePath workspace, Collection<PerformanceReport> parsedReports, TaskListener listener, List<PerformanceReportParser> parsers) intgetBuildUriReports(Run<?, ?> build, FilePath workspace, TaskListener listener, List<PerformanceReportParser> parsers, boolean locatePerformanceReports) booleanList<? extends AbstractConstraint>intintbooleanRun<?,?> getnthBuild(Run<?, ?> build) Gets the Build object entered in the text box "Compare with nth Build"intprotected List<PerformanceReportParser>getParsers(Run<?, ?> build, FilePath workspace, PrintStream logger, EnvVars env) static FilegetPerformanceReport(Run<?, ?> build, String parserDisplayName, String performanceReportName) static StringgetPerformanceReportBuildFileName(String performanceReportWorkspaceName) Delete the date suffix appended to the Performance result files by the Maven Performance pluginstatic File[]getPerformanceReportDirectory(Run<?, ?> build, String parserDisplayName, PrintStream logger) getProjectAction(AbstractProject<?, ?> project) doubledoubledoubledoublebooleanbooleanisART()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisMRT()booleanbooleanisPRT()booleanlocatePerformanceReports(FilePath workspace, String includes) look for performance reports based in the configured parameter includes.voidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) prepareEvaluation(Run<?, ?> run, FilePath workspace, TaskListener listener, List<PerformanceReportParser> parsers) preparing evaluation - this is necessary regardless of the mode of evaluationThis method, invoked after object is resurrected from persistencevoidsetBaselineBuild(int baselineBuild) voidsetCompareBuildPrevious(boolean compareBuildPrevious) voidsetConfigType(String configType) voidsetConstraints(List<? extends AbstractConstraint> constraints) voidsetErrorFailedThreshold(int errorFailedThreshold) voidsetErrorUnstableResponseTimeThreshold(String errorUnstableResponseTimeThreshold) voidsetErrorUnstableThreshold(int errorUnstableThreshold) voidsetExcludeResponseTime(boolean excludeResponseTime) voidsetFailBuildIfNoResultFile(boolean failBuildIfNoResultFile) voidsetFilename(String filename) voidsetFilterRegex(String filterRegex) voidsetGraphType(String graphType) voidsetIgnoreFailedBuilds(boolean ignoreFailedBuilds) voidsetIgnoreUnstableBuilds(boolean ignoreUnstableBuilds) voidsetJunitOutput(String junitOutput) voidsetModeEvaluation(boolean modeEvaluation) voidsetModeOfThreshold(boolean modeOfThreshold) voidsetModePerformancePerTestCase(boolean modePerformancePerTestCase) voidsetModeThroughput(boolean modeThroughput) voidsetNthBuildNumber(int nthBuildNumber) voidsetParsers(List<PerformanceReportParser> parsers) voidsetPercentiles(String percentiles) voidsetPersistConstraintLog(boolean persistConstraintLog) voidsetRelativeFailedThresholdNegative(double relativeFailedThresholdNegative) voidsetRelativeFailedThresholdPositive(double relativeFailedThresholdPositive) voidsetRelativeUnstableThresholdNegative(double relativeUnstableThresholdNegative) voidsetRelativeUnstableThresholdPositive(double relativeUnstableThresholdPositive) voidsetShowTrendGraphs(boolean showTrendGraphs) voidsetSourceDataFiles(String sourceDataFiles) Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectActions, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Field Details
-
THRESHOLD_TOLERANCE
public static final double THRESHOLD_TOLERANCE- See Also:
-
ART
- See Also:
-
MRT
- See Also:
-
PRT
- See Also:
-
optionType
-
-
Constructor Details
-
PerformancePublisher
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public PerformancePublisher(String sourceDataFiles, int errorFailedThreshold, int errorUnstableThreshold, String errorUnstableResponseTimeThreshold, double relativeFailedThresholdPositive, double relativeFailedThresholdNegative, double relativeUnstableThresholdPositive, double relativeUnstableThresholdNegative, int nthBuildNumber, boolean modePerformancePerTestCase, String configType, boolean modeOfThreshold, boolean failBuildIfNoResultFile, boolean compareBuildPrevious, boolean modeThroughput, boolean showTrendGraphs, List<PerformanceReportParser> parsers) Legacy constructor used for internal references. -
PerformancePublisher
-
-
Method Details
-
getPerformanceReport
-
getProjectAction
- Specified by:
getProjectActionin interfaceBuildStep- Overrides:
getProjectActionin classBuildStepCompatibilityLayer
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
getPerformanceReportBuildFileName
Delete the date suffix appended to the Performance result files by the Maven Performance plugin
- Returns:
- the name of the PerformanceReport in the Build
-
locatePerformanceReports
protected static List<FilePath> locatePerformanceReports(FilePath workspace, String includes) throws IOException, InterruptedException look for performance reports based in the configured parameter includes. 'includes' is - an Ant-style pattern - a list of files and folders separated by the characters ;:,- Throws:
IOExceptionInterruptedException
-
getParsers
protected List<PerformanceReportParser> getParsers(Run<?, ?> build, FilePath workspace, PrintStream logger, EnvVars env) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
readResolve
This method, invoked after object is resurrected from persistence -
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
prepareEvaluation
public Collection<PerformanceReport> prepareEvaluation(Run<?, ?> run, FilePath workspace, TaskListener listener, List<PerformanceReportParser> parsers) throws IOException, InterruptedExceptionpreparing evaluation - this is necessary regardless of the mode of evaluation- Throws:
IOExceptionInterruptedException
-
getBuildUriReports
protected List<UriReport> getBuildUriReports(Run<?, ?> build, FilePath workspace, TaskListener listener, List<PerformanceReportParser> parsers, boolean locatePerformanceReports) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
evaluateInStandardMode
public void evaluateInStandardMode(Run<?, ?> run, FilePath workspace, Collection<PerformanceReport> parsedReports, TaskListener listener, List<PerformanceReportParser> parsers) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
compareWithAbsoluteThreshold
public void compareWithAbsoluteThreshold(Run<?, ?> run, TaskListener listener, Collection<PerformanceReport> parsedReports) -
compareWithRelativeThreshold
public void compareWithRelativeThreshold(Run<?, ?> run, FilePath workspace, TaskListener listener, List<PerformanceReportParser> parsers) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
evaluateInExpertMode
public void evaluateInExpertMode(Run<?, ?> run, FilePath workspace, TaskListener listener) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
getErrorFailedThreshold
public int getErrorFailedThreshold() -
setErrorFailedThreshold
@DataBoundSetter public void setErrorFailedThreshold(int errorFailedThreshold) -
getErrorUnstableThreshold
public int getErrorUnstableThreshold() -
setErrorUnstableThreshold
@DataBoundSetter public void setErrorUnstableThreshold(int errorUnstableThreshold) -
getErrorUnstableResponseTimeThreshold
-
setErrorUnstableResponseTimeThreshold
@DataBoundSetter public void setErrorUnstableResponseTimeThreshold(String errorUnstableResponseTimeThreshold) -
isModePerformancePerTestCase
public boolean isModePerformancePerTestCase() -
setModePerformancePerTestCase
@DataBoundSetter public void setModePerformancePerTestCase(boolean modePerformancePerTestCase) -
getFilename
-
setFilename
-
isFailBuildIfNoResultFile
public boolean isFailBuildIfNoResultFile() -
setFailBuildIfNoResultFile
@DataBoundSetter public void setFailBuildIfNoResultFile(boolean failBuildIfNoResultFile) -
isART
public boolean isART() -
isMRT
public boolean isMRT() -
isPRT
public boolean isPRT() -
getPerformanceReportDirectory
public static File[] getPerformanceReportDirectory(Run<?, ?> build, String parserDisplayName, PrintStream logger) -
getnthBuild
Gets the Build object entered in the text box "Compare with nth Build"- Parameters:
build- , listener- Returns:
- build object
-
getRelativeFailedThresholdPositive
public double getRelativeFailedThresholdPositive() -
getRelativeFailedThresholdNegative
public double getRelativeFailedThresholdNegative() -
setRelativeFailedThresholdPositive
@DataBoundSetter public void setRelativeFailedThresholdPositive(double relativeFailedThresholdPositive) -
setRelativeFailedThresholdNegative
@DataBoundSetter public void setRelativeFailedThresholdNegative(double relativeFailedThresholdNegative) -
getRelativeUnstableThresholdPositive
public double getRelativeUnstableThresholdPositive() -
getRelativeUnstableThresholdNegative
public double getRelativeUnstableThresholdNegative() -
setRelativeUnstableThresholdPositive
@DataBoundSetter public void setRelativeUnstableThresholdPositive(double relativeUnstableThresholdPositive) -
setRelativeUnstableThresholdNegative
@DataBoundSetter public void setRelativeUnstableThresholdNegative(double relativeUnstableThresholdNegative) -
getNthBuildNumber
public int getNthBuildNumber() -
setNthBuildNumber
@DataBoundSetter public void setNthBuildNumber(int nthBuildNumber) -
getConfigType
-
setConfigType
-
getGraphType
-
setGraphType
-
getModeOfThreshold
public boolean getModeOfThreshold() -
setModeOfThreshold
@DataBoundSetter public void setModeOfThreshold(boolean modeOfThreshold) -
getCompareBuildPrevious
public boolean getCompareBuildPrevious() -
setCompareBuildPrevious
@DataBoundSetter public void setCompareBuildPrevious(boolean compareBuildPrevious) -
isModeThroughput
public boolean isModeThroughput() -
setModeThroughput
@DataBoundSetter public void setModeThroughput(boolean modeThroughput) -
getConstraints
-
setConstraints
-
setIgnoreFailedBuilds
@DataBoundSetter public void setIgnoreFailedBuilds(boolean ignoreFailedBuilds) -
isIgnoreFailedBuilds
public boolean isIgnoreFailedBuilds() -
setIgnoreUnstableBuilds
@DataBoundSetter public void setIgnoreUnstableBuilds(boolean ignoreUnstableBuilds) -
isIgnoreUnstableBuilds
public boolean isIgnoreUnstableBuilds() -
isPersistConstraintLog
public boolean isPersistConstraintLog() -
setPersistConstraintLog
@DataBoundSetter public void setPersistConstraintLog(boolean persistConstraintLog) -
isModeEvaluation
public boolean isModeEvaluation() -
setModeEvaluation
@DataBoundSetter public void setModeEvaluation(boolean modeEvaluation) -
setShowTrendGraphs
@DataBoundSetter public void setShowTrendGraphs(boolean showTrendGraphs) -
isShowTrendGraphs
public boolean isShowTrendGraphs() -
getShowTrendGraphs
public boolean getShowTrendGraphs() -
getSourceDataFiles
-
setSourceDataFiles
-
getParsers
-
setParsers
-
isExcludeResponseTime
public boolean isExcludeResponseTime() -
setExcludeResponseTime
@DataBoundSetter public void setExcludeResponseTime(boolean excludeResponseTime) -
getJunitOutput
-
setJunitOutput
-
getPercentiles
-
setPercentiles
-
getBaselineBuild
public int getBaselineBuild() -
setBaselineBuild
@DataBoundSetter public void setBaselineBuild(int baselineBuild) -
addAliases
Mapping classes after refactoring for backward compatibility. -
getFilterRegex
- Returns:
- the filterRegex
-
setFilterRegex
- Parameters:
filterRegex- the filterRegex to set
-