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.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringFile name of the UNIT report file.protected static final StringDefines 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.MatrixAggregatorcreateAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener) doubledoubleprotected StringGets the URL name that will be used for archiving and linking the reports.voidperformReport(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Performs the report-specific post-build operations.voidsetFailedThreshold(double failedThreshold) voidsetUnstableThreshold(double unstableThreshold) Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractToolPublisher
configureToolInstallation, getInstallation, getToolClient, getToolName, isInstallationVerified, setInstallationMethods 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, setWorkspaceMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods 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 theETInstallationto 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:
createAggregatorin interfacehudson.matrix.MatrixAggregatable
-
performReport
public void performReport(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException, ETPluginExceptionDescription copied from class:AbstractReportPublisherPerforms the report-specific post-build operations.- Specified by:
performReportin 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:AbstractReportPublisherGets the URL name that will be used for archiving and linking the reports.- Specified by:
getUrlNamein classAbstractReportPublisher- Returns:
- the URL name
-