Class BenchmarkPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- org.jenkinsci.plugins.benchmark.core.BenchmarkPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
@ExportedBean public class BenchmarkPublisher extends Recorder implements SimpleBuildStep
Benchmark post-build step/publisherCore of the plugin, from which all actions either display of backend logic derive.
- Since:
- 5/16/2017.
- Author:
- Daniel Mercier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BenchmarkPublisher.DescriptorImpl
Descriptor forBenchmarkPublisher
.-
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
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
Fields Modifier and Type Field Description static int
TIME_DELAY_MS
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
-
Methods inherited from class hudson.tasks.Recorder
getDescriptor
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, 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, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Field Detail
-
TIME_DELAY_MS
public static final int TIME_DELAY_MS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
perform
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath filePath, @Nonnull Launcher launcher, @Nonnull TaskListener taskListener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
hasResults
public Boolean hasResults(Run run) throws NullPointerException, FileNotFoundException, com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
Return whether result files are present- Parameters:
run
- Jenkins run instance- Returns:
- Whether raw results are available
- Throws:
NullPointerException
- If null pointer detectedFileNotFoundException
- If file not foundcom.google.gson.JsonIOException
- If I/O errors occurcom.google.gson.JsonSyntaxException
- If JSON syntax invalid
-
getRawResults
public MapperBase getRawResults(Run<?,?> run) throws NullPointerException, InterruptedException, ValidationException, IOException, com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
Retrieved and assemble all the build results into the mapper construct- Parameters:
run
- Jenkins run instance- Returns:
- Class to raw results
- Throws:
NullPointerException
- If null pointer detectedInterruptedException
- Interrupted ExceptionValidationException
- Validation exceptionIOException
- If file not foundcom.google.gson.JsonIOException
- If I/O errors occurcom.google.gson.JsonSyntaxException
- If JSON syntax invalid
-
fillAllResults
public void fillAllResults(Job project)
fill All Results from files- Parameters:
project
- Job being executed
-
resetClock
public void resetClock()
-
resetMemory
public void resetMemory()
-
setTimer
public void setTimer(Timer timer)
-
setSelectedResult
public void setSelectedResult(Integer selectedResult)
-
setSelectedBuild
public void setSelectedBuild(Integer selectedBuild)
-
setMapper
public void setMapper(MapperBase mapper)
-
getInputLocation
public String getInputLocation()
-
getSchemaSelection
public String getSchemaSelection()
-
getTruncateStrings
public Boolean getTruncateStrings()
-
getAltInputSchema
public String getAltInputSchema()
-
getAltInputSchemaLocation
public String getAltInputSchemaLocation()
-
getTimer
public Timer getTimer()
-
getSelectedResult
public Integer getSelectedResult()
-
getSelectedBuild
public Integer getSelectedBuild()
-
getMapper
public MapperBase getMapper()
-
getMapper
public MapperBase getMapper(Run run) throws NullPointerException, InterruptedException, ValidationException, IOException, com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
- Throws:
NullPointerException
InterruptedException
ValidationException
IOException
com.google.gson.JsonIOException
com.google.gson.JsonSyntaxException
-
-