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 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
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
static final Logger
protected static final String
protected static final String
protected static final String
protected static final String
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
extractDefaultReportToWorkingDirectory
(FilePath workingDirectory) protected void
generatePerformanceTrend
(String path, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) getBztJobResult
(int code) protected FilePath
getBztWorkingDirectory
(FilePath jobWorkspace) getJobResult
(int code) getProjectAction
(AbstractProject<?, ?> project) boolean
boolean
boolean
boolean
isSuccessCode
(int code) boolean
boolean
void
perform
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) This method, invoked after object is resurrected from persistenceint
runCmd
(String[] commands, FilePath workspace, OutputStream logger, Launcher launcher, EnvVars envVars) void
setAlwaysUseVirtualenv
(boolean alwaysUseVirtualenv) void
setBztVersion
(String bztVersion) void
setGeneratePerformanceTrend
(boolean generatePerformanceTrend) void
void
setPrintDebugOutput
(boolean printDebugOutput) void
setUseBztExitCode
(boolean useBztExitCode) void
setUseSystemSitePackages
(boolean useSystemSitePackages) void
setVirtualEnvCommand
(String virtualEnvCommand) void
setWorkingDirectory
(String workingDirectory) void
setWorkspace
(String workspace) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, 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
getProjectActions, getRequiredMonitorService, perform, prebuild
Methods 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:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getBztWorkingDirectory
-
generatePerformanceTrend
protected void generatePerformanceTrend(String path, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
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:
InterruptedException
IOException
-
extractDefaultReportToWorkingDirectory
protected String extractDefaultReportToWorkingDirectory(FilePath workingDirectory) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
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
-