From 6b3f8890aceafc0cc5e307e859170c3914bf2094 Mon Sep 17 00:00:00 2001 From: Guillaume Jambet Date: Fri, 16 Feb 2018 16:56:38 +0100 Subject: SONAR-10345 Remove old webhook UI in the settings --- .../java/org/sonar/scanner/report/ContextPropertiesPublisher.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sonar-scanner-engine') diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ContextPropertiesPublisher.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ContextPropertiesPublisher.java index 55b5eb9cadc..48384ca95cf 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ContextPropertiesPublisher.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ContextPropertiesPublisher.java @@ -24,13 +24,12 @@ import java.util.function.Function; import java.util.stream.Collectors; import java.util.stream.Stream; import javax.annotation.Nonnull; +import org.sonar.core.config.CorePropertyDefinitions; import org.sonar.scanner.config.DefaultConfiguration; import org.sonar.scanner.protocol.output.ScannerReport; import org.sonar.scanner.protocol.output.ScannerReportWriter; import org.sonar.scanner.repository.ContextPropertiesCache; -import static org.sonar.core.config.WebhookProperties.ANALYSIS_PROPERTY_PREFIX; - public class ContextPropertiesPublisher implements ReportPublisherStep { private final ContextPropertiesCache cache; @@ -51,7 +50,7 @@ public class ContextPropertiesPublisher implements ReportPublisherStep { // properties that are automatically included to report so that // they can be included to webhook payloads Stream fromSettings = config.getProperties().entrySet().stream() - .filter(e -> e.getKey().startsWith(ANALYSIS_PROPERTY_PREFIX)) + .filter(e -> e.getKey().startsWith(CorePropertyDefinitions.SONAR_ANALYSIS)) .map(transformer); writer.writeContextProperties(Stream.concat(fromCache, fromSettings).collect(Collectors.toList())); -- cgit v1.2.3