Class JUnitResultsStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
hudson.tasks.junit.pipeline.JUnitResultsStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>, JUnitTask

public class JUnitResultsStep extends org.jenkinsci.plugins.workflow.steps.Step implements JUnitTask
  • Constructor Details

    • JUnitResultsStep

      @DataBoundConstructor public JUnitResultsStep(String testResults)
  • Method Details

    • getTestResults

      public String getTestResults()
      Specified by:
      getTestResults in interface JUnitTask
    • getHealthScaleFactor

      public double getHealthScaleFactor()
      Specified by:
      getHealthScaleFactor in interface JUnitTask
    • setHealthScaleFactor

      @DataBoundSetter public final void setHealthScaleFactor(double healthScaleFactor)
      Parameters:
      healthScaleFactor - Health scale factor.
      Since:
      1.2-beta-1
    • getTestDataPublishers

      @NonNull public List<TestDataPublisher> getTestDataPublishers()
      Specified by:
      getTestDataPublishers in interface JUnitTask
    • setTestDataPublishers

      @DataBoundSetter public final void setTestDataPublishers(@NonNull List<TestDataPublisher> testDataPublishers)
      Parameters:
      testDataPublishers - Test data publishers.
      Since:
      1.2
    • setKeepLongStdio

      @Deprecated @DataBoundSetter public final void setKeepLongStdio(boolean keepLongStdio)
      Deprecated.
      Parameters:
      keepLongStdio - Whether to keep long stdio.
      Since:
      1.2-beta-1
    • isKeepLongStdio

      @Deprecated public boolean isKeepLongStdio()
      Deprecated.
      Specified by:
      isKeepLongStdio in interface JUnitTask
    • getStdioRetention

      public String getStdioRetention()
      Specified by:
      getStdioRetention in interface JUnitTask
      Returns:
      the stdioRetention
    • setStdioRetention

      @DataBoundSetter public final void setStdioRetention(String stdioRetention)
      Parameters:
      stdioRetention - How to keep long stdio.
    • isKeepProperties

      public boolean isKeepProperties()
      Specified by:
      isKeepProperties in interface JUnitTask
      Returns:
      the keepProperties.
    • setKeepProperties

      @DataBoundSetter public final void setKeepProperties(boolean keepProperties)
      Parameters:
      keepProperties - Whether to keep the properties
    • isKeepTestNames

      public boolean isKeepTestNames()
      Specified by:
      isKeepTestNames in interface JUnitTask
      Returns:
      the keepTestNames.
    • setKeepTestNames

      @DataBoundSetter public final void setKeepTestNames(boolean keepTestNames)
      Parameters:
      keepTestNames - Whether to avoid adding parallel stage name into test name.
    • isAllowEmptyResults

      public boolean isAllowEmptyResults()
      Specified by:
      isAllowEmptyResults in interface JUnitTask
      Returns:
      the allowEmptyResults
    • isSkipPublishingChecks

      public boolean isSkipPublishingChecks()
      Should we skip publishing checks to the checks API plugin.
      Specified by:
      isSkipPublishingChecks in interface JUnitTask
      Returns:
      if publishing checks should be skipped, false otherwise
    • setSkipPublishingChecks

      @DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks)
    • getChecksName

      public String getChecksName()
      Specified by:
      getChecksName in interface JUnitTask
    • setChecksName

      @DataBoundSetter public void setChecksName(String checksName)
    • setAllowEmptyResults

      @DataBoundSetter public final void setAllowEmptyResults(boolean allowEmptyResults)
    • isSkipMarkingBuildUnstable

      public boolean isSkipMarkingBuildUnstable()
    • setSkipMarkingBuildUnstable

      @DataBoundSetter public void setSkipMarkingBuildUnstable(boolean skipMarkingBuildUnstable)
    • isSkipOldReports

      public boolean isSkipOldReports()
      Specified by:
      isSkipOldReports in interface JUnitTask
    • setSkipOldReports

      @DataBoundSetter public void setSkipOldReports(boolean skipOldReports)
    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.Step
      Throws:
      Exception