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.
  • Field Details

    • JUNIT_REPORT_FILE

      protected static final String JUNIT_REPORT_FILE
      File name of the UNIT report file.
      See Also:
    • UNIT_TEMPLATE_NAME

      protected static final String UNIT_TEMPLATE_NAME
      Defines the path name containing the UNIT reports inside of the test report directory.
      See Also:
  • Constructor Details

    • JUnitPublisher

      @DataBoundConstructor public JUnitPublisher(@Nonnull String toolName)
      Instantiates a new JUnitPublisher.
      Parameters:
      toolName - the tool name identifying the ETInstallation 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 interface hudson.matrix.MatrixAggregatable
    • performReport

      public void performReport(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException, ETPluginException
      Description copied from class: AbstractReportPublisher
      Performs the report-specific post-build operations.
      Specified by:
      performReport in class AbstractReportPublisher
      Parameters:
      run - the run
      workspace - the workspace
      launcher - the launcher
      listener - the listener
      Throws:
      InterruptedException - the interrupted exception
      IOException - signals that an I/O exception has occurred
      ETPluginException - in case of report operation errors
    • getUrlName

      protected String getUrlName()
      Description copied from class: AbstractReportPublisher
      Gets the URL name that will be used for archiving and linking the reports.
      Specified by:
      getUrlName in class AbstractReportPublisher
      Returns:
      the URL name