mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 00:59:34 +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 {
|
private void loadSuppressionData() throws SuppressionParseException {
|
||||||
final String suppressionFilePath = Settings.getString(Settings.KEYS.SUPPRESSION_FILE);
|
final String suppressionFilePath = Settings.getString(Settings.KEYS.SUPPRESSION_FILE);
|
||||||
if (suppressionFilePath == null) {
|
if (suppressionFilePath == null) {
|
||||||
|
rules = null; // Set to null to fix issue with Jenkins plugin configuration changes between builds
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
File file = null;
|
File file = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user