Package hudson.plugins.performance.build
Class PerformanceTestBuild
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.performance.build.PerformanceTestBuild
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
"Build step" for running performance test
-
Nested Class Summary
Nested ClassesNested 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 TypeFieldDescriptionprotected static final Stringprotected static final Stringstatic final Loggerprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractDefaultReportToWorkingDirectory(FilePath workingDirectory) protected voidgeneratePerformanceTrend(String path, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) getBztJobResult(int code) protected FilePathgetBztWorkingDirectory(FilePath jobWorkspace) getJobResult(int code) getProjectAction(AbstractProject<?, ?> project) booleanbooleanbooleanbooleanisSuccessCode(int code) booleanbooleanvoidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) This method, invoked after object is resurrected from persistenceintrunCmd(String[] commands, FilePath workspace, OutputStream logger, Launcher launcher, EnvVars envVars) voidsetAlwaysUseVirtualenv(boolean alwaysUseVirtualenv) voidsetBztVersion(String bztVersion) voidsetGeneratePerformanceTrend(boolean generatePerformanceTrend) voidvoidsetPrintDebugOutput(boolean printDebugOutput) voidsetUseBztExitCode(boolean useBztExitCode) voidsetUseSystemSitePackages(boolean useSystemSitePackages) voidsetVirtualEnvCommand(String virtualEnvCommand) voidsetWorkingDirectory(String workingDirectory) voidsetWorkspace(String workspace) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, 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, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Field Details
-
LOGGER
-
PERFORMANCE_TEST_COMMAND
- See Also:
-
VIRTUALENV_COMMAND
- See Also:
-
HELP_OPTION
- See Also:
-
VIRTUALENV_PATH_UNIX
- See Also:
-
VIRTUALENV_PATH_WINDOWS
- See Also:
-
DEFAULT_CONFIG_FILE
- See Also:
-
-
Constructor Details
-
PerformanceTestBuild
-
-
Method Details
-
readResolve
This method, invoked after object is resurrected from persistence -
getProjectAction
- Specified by:
getProjectActionin interfaceBuildStep- Overrides:
getProjectActionin classBuildStepCompatibilityLayer
-
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
-
getBztWorkingDirectory
-
generatePerformanceTrend
protected void generatePerformanceTrend(String path, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
isSuccessCode
public boolean isSuccessCode(int code) -
getJobResult
-
getBztJobResult
-
runCmd
public int runCmd(String[] commands, FilePath workspace, OutputStream logger, Launcher launcher, EnvVars envVars) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
extractDefaultReportToWorkingDirectory
protected String extractDefaultReportToWorkingDirectory(FilePath workingDirectory) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getParams
-
setParams
-
isPrintDebugOutput
public boolean isPrintDebugOutput() -
isAlwaysUseVirtualenv
public boolean isAlwaysUseVirtualenv() -
setAlwaysUseVirtualenv
@DataBoundSetter public void setAlwaysUseVirtualenv(boolean alwaysUseVirtualenv) -
setPrintDebugOutput
@DataBoundSetter public void setPrintDebugOutput(boolean printDebugOutput) -
isUseSystemSitePackages
public boolean isUseSystemSitePackages() -
setUseSystemSitePackages
@DataBoundSetter public void setUseSystemSitePackages(boolean useSystemSitePackages) -
isGeneratePerformanceTrend
public boolean isGeneratePerformanceTrend() -
setGeneratePerformanceTrend
@DataBoundSetter public void setGeneratePerformanceTrend(boolean generatePerformanceTrend) -
isUseBztExitCode
public boolean isUseBztExitCode() -
setUseBztExitCode
@DataBoundSetter public void setUseBztExitCode(boolean useBztExitCode) -
getWorkspace
-
setWorkspace
-
getBztVersion
-
setBztVersion
-
getWorkingDirectory
-
setWorkingDirectory
-
getVirtualEnvCommand
-
setVirtualEnvCommand
-