public class GithubCoveragePublisher
extends hudson.tasks.Recorder
| Modifier and Type | Class and Description |
|---|---|
static class |
GithubCoveragePublisher.DescriptorImpl |
hudson.tasks.Publisher.DescriptorExtensionListImpl| Modifier and Type | Field and Description |
|---|---|
static int |
COMPARISON_FIXED |
static int |
COMPARISON_SONAR |
| Constructor and Description |
|---|
GithubCoveragePublisher(String filepath,
String coverageXmlType,
String coverageRateType,
ComparisonOption comparisonOption) |
| Modifier and Type | Method and Description |
|---|---|
ComparisonOption |
getComparisonOption() |
String |
getCoverageRateType() |
String |
getCoverageXmlType() |
GithubCoveragePublisher.DescriptorImpl |
getDescriptor() |
String |
getFilepath() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getSonarProject() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
static boolean |
publishCoverage(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.EnvVars env,
String filepath,
String coverageXmlType,
ComparisonOption comparisonOption,
String coverageRateType,
org.apache.commons.lang.mutable.MutableBoolean codeCoverageAchieved) |
void |
setComparisonOption(ComparisonOption comparisonOption) |
void |
setCoverageRateType(String coverageRateType) |
void |
setCoverageXmlType(String coverageXmlType) |
all, getProjectAction, needsToRunAfterFinalized, prebuildpublic static final int COMPARISON_SONAR
public static final int COMPARISON_FIXED
@DataBoundConstructor public GithubCoveragePublisher(String filepath, String coverageXmlType, String coverageRateType, ComparisonOption comparisonOption) throws IOException
IOExceptionpublic GithubCoveragePublisher.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorderpublic String getFilepath()
public String getCoverageXmlType()
@DataBoundSetter public void setCoverageXmlType(String coverageXmlType)
public ComparisonOption getComparisonOption()
@DataBoundSetter public void setComparisonOption(ComparisonOption comparisonOption)
public String getSonarProject()
public String getCoverageRateType()
@DataBoundSetter public void setCoverageRateType(String coverageRateType)
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic static boolean publishCoverage(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.EnvVars env,
String filepath,
String coverageXmlType,
ComparisonOption comparisonOption,
String coverageRateType,
org.apache.commons.lang.mutable.MutableBoolean codeCoverageAchieved)
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Copyright © 2016–2021. All rights reserved.