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, prebuild
public static final int COMPARISON_SONAR
public static final int COMPARISON_FIXED
@DataBoundConstructor public GithubCoveragePublisher(String filepath, String coverageXmlType, String coverageRateType, ComparisonOption comparisonOption) throws IOException
IOException
public GithubCoveragePublisher.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Recorder
public 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.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public 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
InterruptedException
IOException
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Copyright © 2016–2021. All rights reserved.