Class XUnitPublisher

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep

public class XUnitPublisher extends Recorder implements SimpleBuildStep
Class that converting custom reports to Junit reports and records them.
Author:
Gregory Boissinot
  • Constructor Details

    • XUnitPublisher

      @DataBoundConstructor public XUnitPublisher(@CheckForNull org.jenkinsci.lib.dtkit.type.TestType[] tools, @CheckForNull XUnitThreshold[] thresholds, int thresholdMode, @CheckForNull String testTimeMargin)
  • Method Details

    • setReduceLog

      @DataBoundSetter public void setReduceLog(boolean reduceLog)
    • getReduceLog

      public boolean getReduceLog()
    • setSleepTime

      @DataBoundSetter public void setSleepTime(long sleepTime)
    • getSleepTime

      public boolean getSleepTime()
    • setFollowSymlink

      @DataBoundSetter public void setFollowSymlink(boolean followSymlink)
    • getFollowSymlink

      public boolean getFollowSymlink()
    • setSkipPublishingChecks

      @DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks)
    • getSkipPublishingChecks

      public boolean getSkipPublishingChecks()
    • setChecksName

      @DataBoundSetter public void setChecksName(String checksName)
    • getChecksName

      @Nullable public String getChecksName()
    • getTools

      @NonNull public org.jenkinsci.lib.dtkit.type.TestType[] getTools()
    • getTestTimeMargin

      @NonNull public String getTestTimeMargin()
    • getThresholds

      @NonNull public XUnitThreshold[] getThresholds()
    • getThresholdMode

      public int getThresholdMode()
    • getExtraConfiguration

      @NonNull public ExtraConfiguration getExtraConfiguration()
    • getTestDataPublishers

      @NonNull public Collection<hudson.tasks.junit.TestDataPublisher> getTestDataPublishers()
    • setTestDataPublishers

      @DataBoundSetter public void setTestDataPublishers(@CheckForNull Collection<hudson.tasks.junit.TestDataPublisher> testDataPublishers)
      Configures the TestDataPublishers for this custom reports publisher, to process the recorded data.
      Parameters:
      testDataPublishers - the test data publishers to set for this custom reports publisher
    • getProjectAction

      public Action getProjectAction(AbstractProject<?,?> project)
      Specified by:
      getProjectAction in interface BuildStep
      Overrides:
      getProjectAction in class BuildStepCompatibilityLayer
    • perform

      public void perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
      Specified by:
      perform in interface SimpleBuildStep
      Throws:
      InterruptedException
      IOException
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
      Specified by:
      getRequiredMonitorService in interface BuildStep