@ExportedBean
public class BenchmarkPublisher
extends hudson.tasks.Recorder
implements jenkins.tasks.SimpleBuildStep
Core of the plugin, from which all actions either display of backend logic derive.
Modifier and Type | Class and Description |
---|---|
static class |
BenchmarkPublisher.DescriptorImpl
Descriptor for
BenchmarkPublisher . |
hudson.tasks.Publisher.DescriptorExtensionListImpl
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Modifier and Type | Field and Description |
---|---|
static int |
TIME_DELAY_MS |
Constructor and Description |
---|
BenchmarkPublisher(String inputLocation,
String schemaSelection,
Boolean truncateStrings,
String altInputSchema,
String altInputSchemaLocation) |
Modifier and Type | Method and Description |
---|---|
void |
fillAllResults(hudson.model.Job project)
fill All Results from files
|
String |
getAltInputSchema() |
String |
getAltInputSchemaLocation() |
String |
getInputLocation() |
MapperBase |
getMapper() |
MapperBase |
getMapper(hudson.model.Run run) |
MapperBase |
getRawResults(hudson.model.Run<?,?> run)
Retrieved and assemble all the build results into the mapper construct
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getSchemaSelection() |
Integer |
getSelectedBuild() |
Integer |
getSelectedResult() |
List<? extends Threshold> |
getThresholds() |
Timer |
getTimer() |
Boolean |
getTruncateStrings() |
Boolean |
hasResults(hudson.model.Run run)
Return whether result files are present
|
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath filePath,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener) |
void |
resetClock() |
void |
resetMemory() |
void |
setMapper(MapperBase mapper) |
void |
setSelectedBuild(Integer selectedBuild) |
void |
setSelectedResult(Integer selectedResult) |
void |
setThresholds(List<? extends Threshold> thresholds) |
void |
setTimer(Timer timer) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
public static final int TIME_DELAY_MS
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath filePath, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener taskListener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
public Boolean hasResults(hudson.model.Run run) throws NullPointerException, FileNotFoundException, com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
run
- Jenkins run instanceNullPointerException
- If null pointer detectedFileNotFoundException
- If file not foundcom.google.gson.JsonIOException
- If I/O errors occurcom.google.gson.JsonSyntaxException
- If JSON syntax invalidpublic MapperBase getRawResults(hudson.model.Run<?,?> run) throws NullPointerException, InterruptedException, ValidationException, IOException, com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
run
- Jenkins run instanceNullPointerException
- 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 invalidpublic void fillAllResults(hudson.model.Job project)
project
- Job being executedpublic void resetClock()
public void resetMemory()
public void setTimer(Timer timer)
public void setSelectedResult(Integer selectedResult)
public void setSelectedBuild(Integer selectedBuild)
public void setMapper(MapperBase mapper)
public String getInputLocation()
public String getSchemaSelection()
public Boolean getTruncateStrings()
public String getAltInputSchema()
public String getAltInputSchemaLocation()
public Timer getTimer()
public Integer getSelectedResult()
public Integer getSelectedBuild()
public MapperBase getMapper()
public MapperBase getMapper(hudson.model.Run run) throws NullPointerException, InterruptedException, ValidationException, IOException, com.google.gson.JsonIOException, com.google.gson.JsonSyntaxException
NullPointerException
InterruptedException
ValidationException
IOException
com.google.gson.JsonIOException
com.google.gson.JsonSyntaxException
Copyright © 2016–2019. All rights reserved.