public class CoveragePublisher
extends hudson.tasks.Recorder
Modifier and Type | Class and Description |
---|---|
static class |
CoveragePublisher.DescriptorImpl
Recorder descriptor.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
Modifier and Type | Field and Description |
---|---|
static String |
BASENAME
Base name for the HTML report folder on master.
|
String |
htmlDir
Path to the HTML folder in the workspace.
|
static String |
INDEX
Index file in report folders.
|
static String |
JS
Script file contained in report folders.
|
static String |
STATUS
Status file in report folders for coverage >= 4.
|
static String |
STATUS_LTE_3
Status file in report folders for coverage <= 3.
|
Constructor and Description |
---|
CoveragePublisher(String htmlDir)
Constructor using fields.
|
Modifier and Type | Method and Description |
---|---|
static File |
getHtmlDir(hudson.model.Run<?,?> run)
Get the folder containing the HTML on the master for a build.
|
Collection<hudson.model.Action> |
getProjectActions(hudson.model.AbstractProject<?,?> project) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
public static final String BASENAME
public static final String JS
public static final String INDEX
public static final String STATUS_LTE_3
public static final String STATUS
public final String htmlDir
@DataBoundConstructor public CoveragePublisher(String htmlDir)
htmlDir
- The HTML directorypublic 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 Collection<hudson.model.Action> getProjectActions(hudson.model.AbstractProject<?,?> project)
getProjectActions
in interface hudson.tasks.BuildStep
getProjectActions
in class hudson.tasks.BuildStepCompatibilityLayer
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public static File getHtmlDir(hudson.model.Run<?,?> run)
run
- The buildCopyright © 2004-2018. All Rights Reserved.