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
  • Field Details

  • Constructor Details

    • PerformanceTestBuild

      @DataBoundConstructor public PerformanceTestBuild(String params)
  • Method Details

    • readResolve

      public Object readResolve()
      This method, invoked after object is resurrected from persistence
    • getProjectAction

      public Action getProjectAction(AbstractProject<?,?> project)
      Specified by:
      getProjectAction in interface BuildStep
      Overrides:
      getProjectAction in class BuildStepCompatibilityLayer
    • perform

      public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
      Specified by:
      perform in interface SimpleBuildStep
      Throws:
      InterruptedException
      IOException
    • getBztWorkingDirectory

      protected FilePath getBztWorkingDirectory(FilePath jobWorkspace)
    • 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)