hudson.plugins.brakeman
Class BrakemanPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by hudson.plugins.analysis.core.HealthAwarePublisher
                  extended by hudson.plugins.brakeman.BrakemanPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.matrix.MatrixAggregatable, hudson.model.Describable<hudson.tasks.Publisher>, hudson.plugins.analysis.core.HealthDescriptor, hudson.tasks.BuildStep, Serializable

public class BrakemanPublisher
extends hudson.plugins.analysis.core.HealthAwarePublisher

Publishes the results of the warnings analysis (freestyle project type).

Author:
Maximilian Odendahl
See Also:
Serialized Form

Nested Class Summary
 
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 BrakemanDescriptor BRAKEMAN_DESCRIPTOR
          Descriptor of this publisher.
 String outputFile
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
BrakemanPublisher(String healthy, String unHealthy, String thresholdLimit, boolean useDeltaValues, String unstableTotalAll, String unstableTotalHigh, String unstableTotalNormal, String unstableTotalLow, String unstableNewAll, String unstableNewHigh, String unstableNewNormal, String unstableNewLow, String failedTotalAll, String failedTotalHigh, String failedTotalNormal, String failedTotalLow, String failedNewAll, String failedNewHigh, String failedNewNormal, String failedNewLow, boolean canRunOnFailed, boolean shouldDetectModules, boolean canComputeNew, String outputFile)
          Creates a new instance of BrakemanPublisher.
 
Method Summary
protected  boolean canContinue(hudson.model.Result result)
          
 hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
          
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
          
 hudson.plugins.analysis.core.BuildResult perform(hudson.model.AbstractBuild<?,?> build, hudson.plugins.analysis.util.PluginLogger logger)
          
protected  Object readResolve()
          Creates a new parser set for old versions of this class.
 
Methods inherited from class hudson.plugins.analysis.core.HealthAwarePublisher
canComputeNew, getCanComputeNew, getCanRunOnFailed, getDefaultEncoding, getHealthy, getMinimumPriority, getRequiredMonitorService, getShouldDetectModules, getThresholdLimit, getThresholds, getUnHealthy, getUseDeltaValues, isAntBuild, isMavenBuild, perform, shouldDetectModules
 
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

BRAKEMAN_DESCRIPTOR

@Extension
public static final BrakemanDescriptor BRAKEMAN_DESCRIPTOR
Descriptor of this publisher.


outputFile

public String outputFile
Constructor Detail

BrakemanPublisher

@DataBoundConstructor
public BrakemanPublisher(String healthy,
                                              String unHealthy,
                                              String thresholdLimit,
                                              boolean useDeltaValues,
                                              String unstableTotalAll,
                                              String unstableTotalHigh,
                                              String unstableTotalNormal,
                                              String unstableTotalLow,
                                              String unstableNewAll,
                                              String unstableNewHigh,
                                              String unstableNewNormal,
                                              String unstableNewLow,
                                              String failedTotalAll,
                                              String failedTotalHigh,
                                              String failedTotalNormal,
                                              String failedTotalLow,
                                              String failedNewAll,
                                              String failedNewHigh,
                                              String failedNewNormal,
                                              String failedNewLow,
                                              boolean canRunOnFailed,
                                              boolean shouldDetectModules,
                                              boolean canComputeNew,
                                              String outputFile)
Creates a new instance of BrakemanPublisher.

Method Detail

readResolve

protected Object readResolve()
Creates a new parser set for old versions of this class.

Overrides:
readResolve in class hudson.plugins.analysis.core.HealthAwarePublisher
Returns:
this

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

perform

public hudson.plugins.analysis.core.BuildResult perform(hudson.model.AbstractBuild<?,?> build,
                                                        hudson.plugins.analysis.util.PluginLogger logger)
                                                 throws InterruptedException,
                                                        IOException

Specified by:
perform in class hudson.plugins.analysis.core.HealthAwarePublisher
Throws:
InterruptedException
IOException

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

canContinue

protected boolean canContinue(hudson.model.Result result)

Overrides:
canContinue in class hudson.plugins.analysis.core.HealthAwarePublisher

createAggregator

public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
                                                       hudson.Launcher launcher,
                                                       hudson.model.BuildListener listener)


Copyright © 2004-2012. All Rights Reserved.