Class NewWarningsIncreasedByPercentageCondition
java.lang.Object
org.jenkinsci.plugins.codesonar.conditions.Condition
org.jenkinsci.plugins.codesonar.conditions.NewWarningsIncreasedByPercentageCondition
- All Implemented Interfaces:
ExtensionPoint
,Describable<Condition>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.codesonar.conditions.Condition
CURRENT_BUILD_DATA_NOT_AVAILABLE, DATA_LOADER_EMPTY_RESPONSE, PREVIOUS_BUILD_DATA_NOT_AVAILABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPercentage
(String percentage) void
setWarrantedResult
(String warrantedResult) validate
(CodeSonarHubAnalysisDataLoader current, CodeSonarHubAnalysisDataLoader previous, Launcher launcher, TaskListener listener, CodeSonarLogger csLogger) Methods inherited from class org.jenkinsci.plugins.codesonar.conditions.Condition
describeResult, getAll, getDescriptor, registerResult
-
Constructor Details
-
NewWarningsIncreasedByPercentageCondition
-
-
Method Details
-
getPercentage
- Returns:
- the percentage
-
setPercentage
- Parameters:
percentage
- the percentage to set
-
getWarrantedResult
-
setWarrantedResult
-
validate
public Result validate(CodeSonarHubAnalysisDataLoader current, CodeSonarHubAnalysisDataLoader previous, Launcher launcher, TaskListener listener, CodeSonarLogger csLogger) throws CodeSonarPluginException - Specified by:
validate
in classCondition
- Throws:
CodeSonarPluginException
-