mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 07:43:40 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user