Package hudson.plugins.sauce_ondemand
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SauceOnDemandReportPublisher.DescriptorImpl
Descriptor for the custom publisher.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SauceOnDemandReportPublisher()
Constructs a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description hudson.tasks.junit.TestResultAction.Data
contributeTestData(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener, hudson.tasks.junit.TestResult testResult)
String
getJobVisibility()
protected JenkinsSauceREST
getSauceREST(Run build)
SauceOnDemandReportFactory
getTestData(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener, hudson.tasks.junit.TestResult testResult)
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 foundvoid
setJobVisibility(String jobVisibility)
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
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 classhudson.tasks.junit.TestDataPublisher
- Throws:
IOException
InterruptedException
-
getTestData
public SauceOnDemandReportFactory getTestData(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener, hudson.tasks.junit.TestResult testResult)
- Overrides:
getTestData
in classhudson.tasks.junit.TestDataPublisher
- Parameters:
build
- The build in progresslauncher
- 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)
-
-