org.jenkinsci.plugins.android_lint
Class LintPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.plugins.analysis.core.HealthAwarePublisher
org.jenkinsci.plugins.android_lint.LintPublisher
- 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 LintPublisher
- extends hudson.plugins.analysis.core.HealthAwarePublisher
Publishes the results of parsing an Android lint file.
- See Also:
- Serialized Form
| 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 |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Constructor Summary |
LintPublisher(String healthy,
String unhealthy,
String thresholdLimit,
String defaultEncoding,
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,
String pattern)
Constructor. |
|
Method Summary |
hudson.matrix.MatrixAggregator |
createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
|
LintDescriptor |
getDescriptor()
|
String |
getPattern()
Returns the Ant fileset pattern of files to work with. |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project)
|
hudson.plugins.analysis.core.BuildResult |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.plugins.analysis.util.PluginLogger logger)
|
| Methods inherited from class hudson.plugins.analysis.core.HealthAwarePublisher |
canComputeNew, canContinue, canResolveRelativePaths, getCanComputeNew, getCanResolveRelativePaths, getCanRunOnFailed, getDefaultEncoding, getHealthy, getMinimumPriority, getRequiredMonitorService, getShouldDetectModules, getThresholdLimit, getThresholds, getUnHealthy, getUseDeltaValues, isAntBuild, isMavenBuild, perform, readResolve, shouldDetectModules, updateBuildResult |
| 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 |
LintPublisher
@DataBoundConstructor
public LintPublisher(String healthy,
String unhealthy,
String thresholdLimit,
String defaultEncoding,
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,
String pattern)
- Constructor.
- Parameters:
healthy - Report health as 100% when the number of warnings is less than this value.unhealthy - Report health as 0% when the number of warnings is greater than this value.thresholdLimit - Determines which warning priorities should be considered when
evaluating the build stability and health.defaultEncoding - The default encoding to be used when reading files.useDeltaValues - Determines whether the absolute annotations delta or the actual
annotations set difference should be used to evaluate the build stability.unstableTotalAll - Annotation threshold.unstableTotalHigh - Annotation threshold.unstableTotalNormal - Annotation threshold.unstableTotalLow - Annotation threshold.unstableNewAll - Annotation threshold.unstableNewHigh - Annotation threshold.unstableNewNormal - Annotation threshold.unstableNewLow - Annotation threshold.failedTotalAll - Annotation threshold.failedTotalHigh - Annotation threshold.failedTotalNormal - Annotation threshold.failedTotalLow - Annotation threshold.failedNewAll - Annotation threshold.failedNewHigh - Annotation threshold.failedNewNormal - Annotation threshold.failedNewLow - Annotation threshold.canRunOnFailed - Determines whether the plugin can also run for failed builds.shouldDetectModules - Determines whether module names should be derived from Maven POM
or Ant build files.pattern - Ant fileset pattern used to scan for Lint files.
getPattern
public String getPattern()
- Returns the Ant fileset pattern of files to work with.
- Returns:
- Ant fileset pattern of files to work with.
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
createAggregator
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
getDescriptor
public LintDescriptor getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>- Overrides:
getDescriptor in class hudson.plugins.analysis.core.HealthAwarePublisher
Copyright © 2004-2012. All Rights Reserved.