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
public class PerformanceTestBuild extends Builder implements SimpleBuildStep
"Build step" for running performance test
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PerformanceTestBuild.Descriptor
-
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 protected static String
DEFAULT_CONFIG_FILE
protected static String
HELP_OPTION
static Logger
LOGGER
protected static String
PERFORMANCE_TEST_COMMAND
protected static String
VIRTUALENV_COMMAND
protected static String
VIRTUALENV_PATH_UNIX
protected static String
VIRTUALENV_PATH_WINDOWS
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description PerformanceTestBuild(String params)
-
Method Summary
-
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 Detail
-
LOGGER
public static final Logger LOGGER
-
PERFORMANCE_TEST_COMMAND
protected static final String PERFORMANCE_TEST_COMMAND
- See Also:
- Constant Field Values
-
VIRTUALENV_COMMAND
protected static final String VIRTUALENV_COMMAND
- See Also:
- Constant Field Values
-
HELP_OPTION
protected static final String HELP_OPTION
- See Also:
- Constant Field Values
-
VIRTUALENV_PATH_UNIX
protected static final String VIRTUALENV_PATH_UNIX
- See Also:
- Constant Field Values
-
VIRTUALENV_PATH_WINDOWS
protected static final String VIRTUALENV_PATH_WINDOWS
- See Also:
- Constant Field Values
-
DEFAULT_CONFIG_FILE
protected static final String DEFAULT_CONFIG_FILE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PerformanceTestBuild
@DataBoundConstructor public PerformanceTestBuild(String params)
-
-
Method Detail
-
readResolve
public Object readResolve()
This method, invoked after object is resurrected from persistence
-
getProjectAction
public Action getProjectAction(AbstractProject<?,?> project)
- 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
-
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
public Result getJobResult(int code)
-
getBztJobResult
public Result getBztJobResult(int code)
-
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
public String getParams()
-
setParams
public void setParams(String params)
-
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
public String getWorkspace()
-
setWorkspace
@DataBoundSetter public void setWorkspace(String workspace)
-
getBztVersion
public String getBztVersion()
-
setBztVersion
@DataBoundSetter public void setBztVersion(String bztVersion)
-
getWorkingDirectory
public String getWorkingDirectory()
-
setWorkingDirectory
@DataBoundSetter public void setWorkingDirectory(String workingDirectory)
-
getVirtualEnvCommand
public String getVirtualEnvCommand()
-
setVirtualEnvCommand
@DataBoundSetter public void setVirtualEnvCommand(String virtualEnvCommand)
-
-