diff options
author | Guillaume Jambet <guillaume.jambet@sonarsource.com> | 2018-02-16 16:56:38 +0100 |
---|---|---|
committer | Guillaume Jambet <guillaume.jambet@gmail.com> | 2018-03-01 15:21:05 +0100 |
commit | 6b3f8890aceafc0cc5e307e859170c3914bf2094 (patch) | |
tree | 703ccb53231fab8f64ea3ff1d02ecf75bc26c730 /server | |
parent | 74745908c3dd0c19cdde5e5a44fb9bb43c451d9b (diff) | |
download | sonarqube-6b3f8890aceafc0cc5e307e859170c3914bf2094.tar.gz sonarqube-6b3f8890aceafc0cc5e307e859170c3914bf2094.zip |
SONAR-10345 Remove old webhook UI in the settings
Diffstat (limited to 'server')
4 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java index 3ab7291a64c..bf87bddc653 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java @@ -120,7 +120,7 @@ public class ComputeEngineContainerImplTest { + 26 // level 1 + 53 // content of DaoModule + 3 // content of EsSearchModule - + 59 // content of CorePropertyDefinitions + + 57 // content of CorePropertyDefinitions + 1 // StopFlagContainer ); assertThat( diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/DaoModule.java b/server/sonar-db-dao/src/main/java/org/sonar/db/DaoModule.java index 5db426bc69f..eeb23ef31ad 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/DaoModule.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/DaoModule.java @@ -93,8 +93,6 @@ public class DaoModule extends Module { CeTaskInputDao.class, ComponentDao.class, ComponentKeyUpdaterDao.class, - ProjectLinkDao.class, - LiveMeasureDao.class, CustomMeasureDao.class, DefaultQProfileDao.class, DuplicationDao.class, @@ -116,6 +114,7 @@ public class DaoModule extends Module { PermissionTemplateCharacteristicDao.class, PermissionTemplateDao.class, PluginDao.class, + ProjectLinkDao.class, ProjectQgateAssociationDao.class, PropertiesDao.class, PurgeDao.class, diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistAnalysisPropertiesStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistAnalysisPropertiesStep.java index a9e25697027..3ca4d4a33e7 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistAnalysisPropertiesStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistAnalysisPropertiesStep.java @@ -29,13 +29,14 @@ import org.sonar.server.computation.task.projectanalysis.analysis.AnalysisMetada import org.sonar.server.computation.task.projectanalysis.batch.BatchReportReader; import org.sonar.server.computation.task.step.ComputationStep; +import static org.sonar.core.config.CorePropertyDefinitions.SONAR_ANALYSIS; + /** * Persist analysis properties * Only properties starting with "sonar.analysis" or "sonar.pullrequest" will be persisted in database */ public class PersistAnalysisPropertiesStep implements ComputationStep { - private static final String SONAR_ANALYSIS = "sonar.analysis."; private static final String SONAR_PULL_REQUEST = "sonar.pullrequest."; private final DbClient dbClient; diff --git a/server/sonar-server/src/main/java/org/sonar/server/webhook/WebhookPayloadFactoryImpl.java b/server/sonar-server/src/main/java/org/sonar/server/webhook/WebhookPayloadFactoryImpl.java index c957607c495..96c24d254fb 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/webhook/WebhookPayloadFactoryImpl.java +++ b/server/sonar-server/src/main/java/org/sonar/server/webhook/WebhookPayloadFactoryImpl.java @@ -35,7 +35,7 @@ import org.sonar.server.qualitygate.EvaluatedCondition; import org.sonar.server.qualitygate.EvaluatedQualityGate; import static java.lang.String.format; -import static org.sonar.core.config.WebhookProperties.ANALYSIS_PROPERTY_PREFIX; +import static org.sonar.core.config.CorePropertyDefinitions.SONAR_ANALYSIS; @ComputeEngineSide public class WebhookPayloadFactoryImpl implements WebhookPayloadFactory { @@ -91,7 +91,7 @@ public class WebhookPayloadFactoryImpl implements WebhookPayloadFactory { .beginObject(); properties.entrySet() .stream() - .filter(prop -> prop.getKey().startsWith(ANALYSIS_PROPERTY_PREFIX)) + .filter(prop -> prop.getKey().startsWith(SONAR_ANALYSIS)) .forEach(prop -> writer.prop(prop.getKey(), prop.getValue())); writer.endObject(); } |