aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorGuillaume Jambet <guillaume.jambet@sonarsource.com>2018-02-16 16:56:38 +0100
committerGuillaume Jambet <guillaume.jambet@gmail.com>2018-03-01 15:21:05 +0100
commit6b3f8890aceafc0cc5e307e859170c3914bf2094 (patch)
tree703ccb53231fab8f64ea3ff1d02ecf75bc26c730 /sonar-scanner-engine
parent74745908c3dd0c19cdde5e5a44fb9bb43c451d9b (diff)
downloadsonarqube-6b3f8890aceafc0cc5e307e859170c3914bf2094.tar.gz
sonarqube-6b3f8890aceafc0cc5e307e859170c3914bf2094.zip
SONAR-10345 Remove old webhook UI in the settings
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/report/ContextPropertiesPublisher.java5
1 files changed, 2 insertions, 3 deletions
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<ScannerReport.ContextProperty> 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()));