Class Condition
- java.lang.Object
-
- org.jenkinsci.plugins.codesonar.conditions.Condition
-
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Describable<Condition>
- Direct Known Subclasses:
NewWarningsIncreasedByPercentageCondition
,ProcedureCyclomaticComplexityExceededCondition
,RedAlertLimitCondition
,WarningCountAbsoluteSpecifiedScoreAndHigherCondition
,WarningCountIncreaseOverallCondition
,WarningCountIncreaseSpecifiedScoreAndHigherCondition
,YellowAlertLimitCondition
public abstract class Condition extends Object implements hudson.model.Describable<Condition>, hudson.ExtensionPoint
- Author:
- andrius
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CURRENT_BUILD_DATA_NOT_AVAILABLE
protected static String
DATA_LOADER_EMPTY_RESPONSE
protected static String
PREVIOUS_BUILD_DATA_NOT_AVAILABLE
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
describeResult()
static hudson.DescriptorExtensionList<Condition,ConditionDescriptor<Condition>>
getAll()
hudson.model.Descriptor<Condition>
getDescriptor()
protected void
registerResult(CodeSonarLogger logger, String message, Object... args)
abstract hudson.model.Result
validate(CodeSonarHubAnalysisDataLoader current, CodeSonarHubAnalysisDataLoader previous, hudson.Launcher launcher, hudson.model.TaskListener listener, CodeSonarLogger logger)
-
-
-
Field Detail
-
CURRENT_BUILD_DATA_NOT_AVAILABLE
protected static final String CURRENT_BUILD_DATA_NOT_AVAILABLE
- See Also:
- Constant Field Values
-
PREVIOUS_BUILD_DATA_NOT_AVAILABLE
protected static final String PREVIOUS_BUILD_DATA_NOT_AVAILABLE
- See Also:
- Constant Field Values
-
DATA_LOADER_EMPTY_RESPONSE
protected static final String DATA_LOADER_EMPTY_RESPONSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public abstract hudson.model.Result validate(CodeSonarHubAnalysisDataLoader current, CodeSonarHubAnalysisDataLoader previous, hudson.Launcher launcher, hudson.model.TaskListener listener, CodeSonarLogger logger) throws CodeSonarPluginException
- Throws:
CodeSonarPluginException
-
getDescriptor
public hudson.model.Descriptor<Condition> getDescriptor()
- Specified by:
getDescriptor
in interfacehudson.model.Describable<Condition>
-
getAll
public static hudson.DescriptorExtensionList<Condition,ConditionDescriptor<Condition>> getAll()
-
describeResult
public String describeResult()
-
registerResult
protected void registerResult(CodeSonarLogger logger, String message, Object... args)
-
-