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 classMSTestPublisher.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.DescriptorImplgetDescriptor()booleangetFailOnError()booleangetKeepLongStdio()StringgetLogLevel()ActiongetProjectAction(AbstractProject<?,?> project)Collection<Action>getProjectActions(AbstractProject<?,?> project)BuildStepMonitorgetRequiredMonitorService()StringgetTestResultsFile()booleanperform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)voidperform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)protected ObjectreadResolve()voidsetFailOnError(boolean failOnError)voidsetKeepLongStdio(boolean keepLongStdio)voidsetLogLevel(String logLevel)voidsetTestResultsFile(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:
getProjectActionin interfaceBuildStep- Overrides:
getProjectActionin classBuildStepCompatibilityLayer
-
getProjectActions
@NonNull public Collection<Action> getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActionsin interfaceBuildStep- Overrides:
getProjectActionsin classBuildStepCompatibilityLayer
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
perform
public void perform(@NonNull Run<?,?> build, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
readResolve
protected Object readResolve()
-
getDescriptor
public MSTestPublisher.DescriptorImpl getDescriptor()
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classRecorder
-
-