hudson.plugins.cobertura
Class CoberturaPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by hudson.plugins.cobertura.CoberturaPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class CoberturaPublisher
extends hudson.tasks.Recorder

Cobertura Publisher.

Author:
Stephen Connolly

Nested Class Summary
static class CoberturaPublisher.DescriptorImpl
          Descriptor for CoberturaPublisher.
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static hudson.plugins.cobertura.CoberturaPublisher.CoberturaReportFilenameFilter COBERTURA_FILENAME_FILTER
           
static CoberturaPublisher.DescriptorImpl DESCRIPTOR
          Descriptor should be singleton.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
CoberturaPublisher(java.lang.String coberturaReportFile, boolean onlyStable, SourceEncoding sourceEncoding)
           
 
Method Summary
 java.lang.String getCoberturaReportFile()
          Getter for property 'coberturaReportFile'.
 hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
          
 CoverageTarget getFailingTarget()
          Getter for property 'failingTarget'.
 CoverageTarget getHealthyTarget()
          Getter for property 'healthyTarget'.
 boolean getOnlyStable()
          Which type of build should be considered.
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
          
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
          
 SourceEncoding getSourceEncoding()
           
 java.util.List<CoberturaPublisherTarget> getTargets()
          Getter for property 'targets'.
 CoverageTarget getUnhealthyTarget()
          Getter for property 'unhealthyTarget'.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          
 void setFailingTarget(CoverageTarget failingTarget)
          Setter for property 'failingTarget'.
 void setHealthyTarget(CoverageTarget healthyTarget)
          Setter for property 'healthyTarget'.
 void setUnhealthyTarget(CoverageTarget unhealthyTarget)
          Setter for property 'unhealthyTarget'.
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectActions, prebuild
 

Field Detail

COBERTURA_FILENAME_FILTER

public static final hudson.plugins.cobertura.CoberturaPublisher.CoberturaReportFilenameFilter COBERTURA_FILENAME_FILTER

DESCRIPTOR

@Extension
public static final CoberturaPublisher.DescriptorImpl DESCRIPTOR
Descriptor should be singleton.

Constructor Detail

CoberturaPublisher

@DataBoundConstructor
public CoberturaPublisher(java.lang.String coberturaReportFile,
                                               boolean onlyStable,
                                               SourceEncoding sourceEncoding)
Parameters:
coberturaReportFile - the report directory
Method Detail

getTargets

public java.util.List<CoberturaPublisherTarget> getTargets()
Getter for property 'targets'.

Returns:
Value for property 'targets'.

getCoberturaReportFile

public java.lang.String getCoberturaReportFile()
Getter for property 'coberturaReportFile'.

Returns:
Value for property 'coberturaReportFile'.

getOnlyStable

public boolean getOnlyStable()
Which type of build should be considered.

Returns:
the onlyStable

getHealthyTarget

public CoverageTarget getHealthyTarget()
Getter for property 'healthyTarget'.

Returns:
Value for property 'healthyTarget'.

setHealthyTarget

public void setHealthyTarget(CoverageTarget healthyTarget)
Setter for property 'healthyTarget'.

Parameters:
healthyTarget - Value to set for property 'healthyTarget'.

getUnhealthyTarget

public CoverageTarget getUnhealthyTarget()
Getter for property 'unhealthyTarget'.

Returns:
Value for property 'unhealthyTarget'.

setUnhealthyTarget

public void setUnhealthyTarget(CoverageTarget unhealthyTarget)
Setter for property 'unhealthyTarget'.

Parameters:
unhealthyTarget - Value to set for property 'unhealthyTarget'.

getFailingTarget

public CoverageTarget getFailingTarget()
Getter for property 'failingTarget'.

Returns:
Value for property 'failingTarget'.

setFailingTarget

public void setFailingTarget(CoverageTarget failingTarget)
Setter for property 'failingTarget'.

Parameters:
failingTarget - Value to set for property 'failingTarget'.

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws java.lang.InterruptedException,
                       java.io.IOException

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
java.lang.InterruptedException
java.io.IOException

getProjectAction

public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)

Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()


getDescriptor

public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()

Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Recorder

getSourceEncoding

public SourceEncoding getSourceEncoding()


Copyright © 2004-2011. All Rights Reserved.