Class ResetQualityGateCommand
java.lang.Object
io.jenkins.plugins.analysis.core.model.ResetQualityGateCommand
Resets the quality gate of a static analysis tool to a clean state. Provides a manual way to restart the new warnings
 quality gate evaluation from a clean state (without new warnings). I.e., once this command has been started the next
 build (started automatically or manually) will not evaluate a quality gate that considers the number of new warnings.
 This helps to start over from a clean state if the number of new warnings have been increased accidentally. Otherwise
 you won't get a successful build anymore until all new warnings have been fixed.
 
Technically, this command just adds a marker action to the selected build. Once a new build is running, this marker action will be checked for existence and the quality gate will be bypassed for one single build.
- Author:
 - Ullrich Hafner
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidResets the quality gate for the specified analysis tool.booleanReturns whether the command to reset the quality gate for the specified analysis tool is enabled or not.voidresetReferenceBuild(Run<?, ?> selectedBuild, String id) Resets the quality gate for the specified analysis tool. 
- 
Constructor Details
- 
ResetQualityGateCommand
public ResetQualityGateCommand() 
 - 
 - 
Method Details
- 
execute
Resets the quality gate for the specified analysis tool. This command does not run if not enabled.- Parameters:
 selectedBuild- the selected build that will show the action linkid- the ID of the static analysis tool that should be reset- See Also:
 
 - 
resetReferenceBuild
Resets the quality gate for the specified analysis tool.- Parameters:
 selectedBuild- the selected build that will show the action linkid- the ID of the static analysis tool that should be reset
 - 
isEnabled
Returns whether the command to reset the quality gate for the specified analysis tool is enabled or not.- Parameters:
 selectedBuild- the selected build that will show the action linkid- the ID of the static analysis tool that should be reset- Returns:
 trueif the command is enabled,falseotherwise
 
 -