public class BrakemanPublisher
extends hudson.plugins.analysis.core.HealthAwarePublisher
| Modifier and Type | Class and Description |
|---|---|
static class |
BrakemanPublisher.FileType
Enum for possible file types for brakeman output
|
hudson.tasks.Publisher.DescriptorExtensionListImplhudson.ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static BrakemanDescriptor |
BRAKEMAN_DESCRIPTOR
Descriptor of this publisher.
|
String |
outputFile |
| Constructor and Description |
|---|
BrakemanPublisher(String outputFile)
Creates a new instance of
BrakemanPublisher |
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)
Deprecated.
prefer setters from the base class
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canContinue(hudson.model.Result result) |
hudson.matrix.MatrixAggregator |
createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
protected AbstractBrakemanScanner |
createScanner(String outputContent)
Determines the type of Scanner to use.
|
hudson.plugins.analysis.core.PluginDescriptor |
getDescriptor() |
protected BrakemanPublisher.FileType |
getFileType(String content)
Determines the file type based upon the contents.
|
hudson.plugins.analysis.core.BuildResult |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.plugins.analysis.util.PluginLogger logger) |
hudson.plugins.analysis.core.BuildResult |
publishReport(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.plugins.analysis.util.PluginLogger logger) |
protected Object |
readResolve()
Creates a new parser set for old versions of this class.
|
perform, perform, updateBuildResultcanComputeNew, canResolveRelativePaths, copyFilesWithAnnotationsToBuildFolder, expandFilePattern, getCanComputeNew, getCanResolveRelativePaths, getCanRunOnFailed, getDefaultEncoding, getFailedNewAll, getFailedNewHigh, getFailedNewLow, getFailedNewNormal, getFailedTotalAll, getFailedTotalHigh, getFailedTotalLow, getFailedTotalNormal, getHealthy, getMinimumPriority, getProjectActions, getRequiredMonitorService, getShouldDetectModules, getThresholdLimit, getThresholds, getUnHealthy, getUnstableNewAll, getUnstableNewHigh, getUnstableNewLow, getUnstableNewNormal, getUnstableTotalAll, getUnstableTotalHigh, getUnstableTotalLow, getUnstableTotalNormal, getUseDeltaValues, getUsePreviousBuildAsReference, getUseStableBuildAsReference, isAntBuild, isMavenBuild, isMavenBuild, isThresholdEnabled, perform, setCanComputeNew, setCanResolveRelativePaths, setCanRunOnFailed, setDefaultEncoding, setFailedNewAll, setFailedNewHigh, setFailedNewLow, setFailedNewNormal, setFailedTotalAll, setFailedTotalHigh, setFailedTotalLow, setFailedTotalNormal, setHealthy, setShouldDetectModules, setThresholdLimit, setUnHealthy, setUnstableNewAll, setUnstableNewHigh, setUnstableNewLow, setUnstableNewNormal, setUnstableTotalAll, setUnstableTotalHigh, setUnstableTotalLow, setUnstableTotalNormal, setUseDeltaValues, setUsePreviousBuildAsReference, setUseStableBuildAsReference, shouldDetectModules, useOnlyStableBuildsAsReference, usePreviousBuildAsReferenceall, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, perform, perform, prebuild@Extension public static final BrakemanDescriptor BRAKEMAN_DESCRIPTOR
public String outputFile
@DataBoundConstructor public BrakemanPublisher(String outputFile)
BrakemanPublisheroutputFile - Workspace path to Brakeman output@Deprecated 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)
BrakemanPublisher.protected Object readResolve()
readResolve in class hudson.plugins.analysis.core.HealthAwareRecorderpublic hudson.plugins.analysis.core.BuildResult perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.plugins.analysis.util.PluginLogger logger)
throws InterruptedException,
IOException
perform in class hudson.plugins.analysis.core.HealthAwarePublisherInterruptedExceptionIOExceptionpublic hudson.plugins.analysis.core.BuildResult publishReport(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.plugins.analysis.util.PluginLogger logger)
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionprotected AbstractBrakemanScanner createScanner(String outputContent)
outputContent - protected BrakemanPublisher.FileType getFileType(String content)
content - public hudson.plugins.analysis.core.PluginDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.plugins.analysis.core.HealthAwareRecorderprotected boolean canContinue(hudson.model.Result result)
canContinue in class hudson.plugins.analysis.core.HealthAwareRecorderpublic hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Copyright © 2016–2017. All rights reserved.