Class SauceOnDemandReportPublisher

java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.tasks.junit.TestDataPublisher>
hudson.tasks.junit.TestDataPublisher
hudson.plugins.sauce_ondemand.SauceOnDemandReportPublisher
All Implemented Interfaces:
ExtensionPoint, Describable<hudson.tasks.junit.TestDataPublisher>

public class SauceOnDemandReportPublisher extends hudson.tasks.junit.TestDataPublisher
Associates Sauce OnDemand session ID to unit tests.
Author:
Kohsuke Kawaguchi, Ross Rowe
  • Constructor Details

    • SauceOnDemandReportPublisher

      @DataBoundConstructor public SauceOnDemandReportPublisher()
      Constructs a new instance.
  • Method Details

    • processSessionIds

      public static LinkedList<TestIDDetails> processSessionIds(Boolean isStdout, String... logStrings)
      Processes the log output, and for lines which are in the valid log format, return a list that is found
      Parameters:
      isStdout - is this stdout?
      logStrings - lines of output to be processed, not null
      Returns:
      list of session ids found in log strings
    • getJobVisibility

      public String getJobVisibility()
    • setJobVisibility

      @DataBoundSetter public void setJobVisibility(String jobVisibility)
    • contributeTestData

      public hudson.tasks.junit.TestResultAction.Data contributeTestData(Run<?,?> run, @NonNull FilePath workspace, Launcher launcher, TaskListener listener, hudson.tasks.junit.TestResult testResult) throws IOException, InterruptedException
      Overrides:
      contributeTestData in class hudson.tasks.junit.TestDataPublisher
      Throws:
      IOException
      InterruptedException
    • getTestData

      public SauceOnDemandReportFactory getTestData(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener, hudson.tasks.junit.TestResult testResult)
      Overrides:
      getTestData in class hudson.tasks.junit.TestDataPublisher
      Parameters:
      build - The build in progress
      launcher - This launcher can be used to launch processes for this build.
      listener - Can be used to send any message.
      testResult - Contains the test results for the build.
      Returns:
      a singleton SauceOnDemandReportFactory instance if the build has Sauce results, null if no results are found
    • getSauceREST

      protected JenkinsSauceREST getSauceREST(Run build)