Package hudson.tasks.junit.pipeline
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JUnitResultsStep.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description JUnitResultsStep(String testResults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChecksName()
double
getHealthScaleFactor()
List<TestDataPublisher>
getTestDataPublishers()
String
getTestResults()
boolean
isAllowEmptyResults()
boolean
isKeepLongStdio()
boolean
isSkipPublishingChecks()
Should we skip publishing checks to the checks API plugin.void
setAllowEmptyResults(boolean allowEmptyResults)
void
setChecksName(String checksName)
void
setHealthScaleFactor(double healthScaleFactor)
void
setKeepLongStdio(boolean keepLongStdio)
void
setSkipPublishingChecks(boolean skipPublishingChecks)
void
setTestDataPublishers(List<TestDataPublisher> testDataPublishers)
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Constructor Detail
-
JUnitResultsStep
@DataBoundConstructor public JUnitResultsStep(String testResults)
-
-
Method Detail
-
getTestResults
public String getTestResults()
- Specified by:
getTestResults
in interfaceJUnitTask
-
getHealthScaleFactor
public double getHealthScaleFactor()
- Specified by:
getHealthScaleFactor
in interfaceJUnitTask
-
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 interfaceJUnitTask
-
setTestDataPublishers
@DataBoundSetter public final void setTestDataPublishers(@Nonnull List<TestDataPublisher> testDataPublishers)
- Parameters:
testDataPublishers
- Test data publishers.- Since:
- 1.2
-
isKeepLongStdio
public boolean isKeepLongStdio()
- Specified by:
isKeepLongStdio
in interfaceJUnitTask
- Returns:
- the keepLongStdio.
-
setKeepLongStdio
@DataBoundSetter public final void setKeepLongStdio(boolean keepLongStdio)
- Parameters:
keepLongStdio
- Whether to keep long stdio.- Since:
- 1.2-beta-1
-
isAllowEmptyResults
public boolean isAllowEmptyResults()
- Specified by:
isAllowEmptyResults
in interfaceJUnitTask
- Returns:
- the allowEmptyResults
-
isSkipPublishingChecks
public boolean isSkipPublishingChecks()
Should we skip publishing checks to the checks API plugin.- Specified by:
isSkipPublishingChecks
in interfaceJUnitTask
- Returns:
- if publishing checks should be skipped,
false
otherwise
-
setSkipPublishingChecks
@DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks)
-
getChecksName
public String getChecksName()
- Specified by:
getChecksName
in interfaceJUnitTask
-
setChecksName
@DataBoundSetter public void setChecksName(String checksName)
-
setAllowEmptyResults
@DataBoundSetter public final void setAllowEmptyResults(boolean allowEmptyResults)
-
-