Package hudson.plugins.mstest
Class MSTestPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- hudson.plugins.mstest.MSTestPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,Serializable
,SimpleBuildStep
public class MSTestPublisher extends Recorder implements Serializable, SimpleBuildStep
Class that records MSTest test reports into Hudson.- Author:
- Antonio Marques
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MSTestPublisher.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
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 inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description MSTestPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MSTestPublisher.DescriptorImpl
getDescriptor()
boolean
getFailOnError()
boolean
getKeepLongStdio()
String
getLogLevel()
Action
getProjectAction(AbstractProject<?,?> project)
Collection<Action>
getProjectActions(AbstractProject<?,?> project)
BuildStepMonitor
getRequiredMonitorService()
String
getTestResultsFile()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
void
perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)
protected Object
readResolve()
void
setFailOnError(boolean failOnError)
void
setKeepLongStdio(boolean keepLongStdio)
void
setLogLevel(String logLevel)
void
setTestResultsFile(String testResultsFile)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
getTestResultsFile
@NonNull public String getTestResultsFile()
-
setTestResultsFile
@DataBoundSetter public final void setTestResultsFile(@NonNull String testResultsFile)
-
getFailOnError
public boolean getFailOnError()
-
setFailOnError
@DataBoundSetter public final void setFailOnError(boolean failOnError)
-
getKeepLongStdio
public boolean getKeepLongStdio()
-
setKeepLongStdio
@DataBoundSetter public final void setKeepLongStdio(boolean keepLongStdio)
-
getLogLevel
public String getLogLevel()
-
setLogLevel
@DataBoundSetter public final void setLogLevel(String logLevel)
-
getProjectAction
public Action getProjectAction(AbstractProject<?,?> project)
- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
getProjectActions
@NonNull public Collection<Action> getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActions
in interfaceBuildStep
- Overrides:
getProjectActions
in classBuildStepCompatibilityLayer
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
perform
public void perform(@NonNull Run<?,?> build, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
readResolve
protected Object readResolve()
-
getDescriptor
public MSTestPublisher.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
-