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 ClassesModifier and TypeClassDescriptionstatic classDescriptor for the custom publisher.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhudson.tasks.junit.TestResultAction.DatacontributeTestData(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener, hudson.tasks.junit.TestResult testResult) protected JenkinsSauceRESTgetSauceREST(Run build) 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 foundvoidsetJobVisibility(String jobVisibility) Methods inherited from class hudson.tasks.junit.TestDataPublisher
allMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
SauceOnDemandReportPublisher
@DataBoundConstructor public SauceOnDemandReportPublisher()Constructs a new instance.
-
-
Method Details
-
processSessionIds
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
-
setJobVisibility
-
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:
contributeTestDatain classhudson.tasks.junit.TestDataPublisher- Throws:
IOExceptionInterruptedException
-
getTestData
public SauceOnDemandReportFactory getTestData(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, hudson.tasks.junit.TestResult testResult) - Overrides:
getTestDatain 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
SauceOnDemandReportFactoryinstance if the build has Sauce results, null if no results are found
-
getSauceREST
-