Class JUnitPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
de.tracetronic.jenkins.plugins.ecutest.report.AbstractReportPublisher
de.tracetronic.jenkins.plugins.ecutest.report.AbstractToolPublisher
de.tracetronic.jenkins.plugins.ecutest.report.junit.JUnitPublisher
- All Implemented Interfaces:
ExtensionPoint
,hudson.matrix.MatrixAggregatable
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class JUnitPublisher
extends AbstractToolPublisher
implements hudson.matrix.MatrixAggregatable
Publisher providing the generation of JUnit reports and adds a
TestResultAction
by invoking the
JUnitTestResultParser
.-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionprotected static final String
File name of the UNIT report file.protected static final String
Defines the path name containing the UNIT reports inside of the test report directory.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhudson.matrix.MatrixAggregator
createAggregator
(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener) double
double
protected String
Gets the URL name that will be used for archiving and linking the reports.void
performReport
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Performs the report-specific post-build operations.void
setFailedThreshold
(double failedThreshold) void
setUnstableThreshold
(double unstableThreshold) Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractToolPublisher
configureToolInstallation, getInstallation, getToolClient, getToolName, isInstallationVerified, setInstallation
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractReportPublisher
canContinue, configureToolInstallation, getArchiveTarget, getArchiving, getDescriptor, getDirectorySize, getFileSize, getFirstReportFile, getKeepAll, getLogger, getProjectReportFiles, getReportDir, getReportDirs, getReportFiles, getReportFiles, getRequiredMonitorService, getSettingsDir, getToolClient, getToolDescriptor, getToolInstallation, getWorkspace, getWorkspaceDir, isAllowMissing, isArchiving, isDownstream, isETRunning, isKeepAll, isRunOnFailed, isSkipped, perform, randomId, removePreviousReports, setAllowMissing, setArchiving, setDownstream, setKeepAll, setReportDir, setRunOnFailed, setWorkspace
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Field Details
-
JUNIT_REPORT_FILE
File name of the UNIT report file.- See Also:
-
UNIT_TEMPLATE_NAME
Defines the path name containing the UNIT reports inside of the test report directory.- See Also:
-
-
Constructor Details
-
JUnitPublisher
Instantiates a newJUnitPublisher
.- Parameters:
toolName
- the tool name identifying theETInstallation
to be used
-
-
Method Details
-
getUnstableThreshold
public double getUnstableThreshold() -
setUnstableThreshold
@DataBoundSetter public void setUnstableThreshold(double unstableThreshold) -
getFailedThreshold
public double getFailedThreshold() -
setFailedThreshold
@DataBoundSetter public void setFailedThreshold(double failedThreshold) -
createAggregator
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener) - Specified by:
createAggregator
in interfacehudson.matrix.MatrixAggregatable
-
performReport
public void performReport(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException, ETPluginExceptionDescription copied from class:AbstractReportPublisher
Performs the report-specific post-build operations.- Specified by:
performReport
in classAbstractReportPublisher
- Parameters:
run
- the runworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Throws:
InterruptedException
- the interrupted exceptionIOException
- signals that an I/O exception has occurredETPluginException
- in case of report operation errors
-
getUrlName
Description copied from class:AbstractReportPublisher
Gets the URL name that will be used for archiving and linking the reports.- Specified by:
getUrlName
in classAbstractReportPublisher
- Returns:
- the URL name
-