Fix to prevent rules from being cached between Jenkins builds even if suppression file is not specified.

Former-commit-id: 747e4c585084807239ae2881944bd48a5908e143
This commit is contained in:
Steve Springett
2014-03-29 22:57:44 -05:00
parent 3fcbf075fb
commit eea44d7de2

View File

@@ -93,6 +93,7 @@ public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer {
private void loadSuppressionData() throws SuppressionParseException {
final String suppressionFilePath = Settings.getString(Settings.KEYS.SUPPRESSION_FILE);
if (suppressionFilePath == null) {
rules = null; // Set to null to fix issue with Jenkins plugin configuration changes between builds
return;
}
File file = null;