diff options
author | Jenkins CI <ci@sonarsource.com> | 2016-04-12 08:07:40 +0200 |
---|---|---|
committer | Jenkins CI <ci@sonarsource.com> | 2016-04-12 08:07:40 +0200 |
commit | 54bed58ca48aba47636f8bc025d301e3a8523e6f (patch) | |
tree | b2d351e98482ce754c0c30e27a7ff2065ffc52bf /sonar-scanner-engine | |
parent | be0fa093db7176f18bf137af7246e4ec5167f0ab (diff) | |
parent | a6f552abcf9db3361c2ad903606b3365182da76a (diff) | |
download | sonarqube-54bed58ca48aba47636f8bc025d301e3a8523e6f.tar.gz sonarqube-54bed58ca48aba47636f8bc025d301e3a8523e6f.zip |
Automatic merge from branch-5.5
* origin/branch-5.5:
QA: enable deploy on branch-*
add l10n names for reliability_rating and security_rating
Add PropertiesDao.deleteById
SONAR-7533 Hide sonar.login property in analysis.log sent in the scanner report
SONAR-7238 do not display identity provider details when it is "sonarqube"
fix bug which prevents to add a quality gate condition for "new_" metric
SONAR-7402 clicking on project bubble brings to the project page
Fix javadoc errors
Exclude protobuf code from SQ analysis
Fix some Javadoc warnings
Improve javadoc
Change return type of Plugin#getSonarQubeVersion()
Diffstat (limited to 'sonar-scanner-engine')
3 files changed, 5 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java index dfab90ea7e8..5794a8a0314 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrap/ExtensionInstaller.java @@ -23,7 +23,6 @@ import java.util.List; import javax.annotation.Nullable; import org.sonar.api.ExtensionProvider; import org.sonar.api.Plugin; -import org.sonar.api.SonarPlugin; import org.sonar.api.SonarQubeVersion; import org.sonar.api.batch.AnalysisMode; import org.sonar.core.platform.ComponentContainer; @@ -52,7 +51,7 @@ public class ExtensionInstaller { // plugin extensions for (PluginInfo pluginInfo : pluginRepository.getPluginInfos()) { Plugin plugin = pluginRepository.getPluginInstance(pluginInfo.getKey()); - Plugin.Context context = new Plugin.Context(sonarQubeVersion); + Plugin.Context context = new Plugin.Context(sonarQubeVersion.get()); plugin.define(context); for (Object extension : context.getExtensions()) { doInstall(container, matcher, pluginInfo, extension); diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/report/AnalysisContextReportPublisher.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/report/AnalysisContextReportPublisher.java index e76d215eb0b..d294f55db65 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/batch/report/AnalysisContextReportPublisher.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/report/AnalysisContextReportPublisher.java @@ -29,6 +29,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Properties; import java.util.TreeSet; +import org.sonar.api.CoreProperties; import org.sonar.api.batch.AnalysisMode; import org.sonar.api.batch.BatchSide; import org.sonar.api.batch.bootstrap.ProjectDefinition; @@ -174,6 +175,6 @@ public class AnalysisContextReportPublisher { } private static boolean sensitive(String key) { - return key.contains(".password") || key.contains(".secured"); + return key.equals(CoreProperties.LOGIN) || key.contains(".password") || key.contains(".secured"); } } diff --git a/sonar-scanner-engine/src/test/java/org/sonar/batch/report/AnalysisContextReportPublisherTest.java b/sonar-scanner-engine/src/test/java/org/sonar/batch/report/AnalysisContextReportPublisherTest.java index 9d82457263c..82e3346ca60 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/batch/report/AnalysisContextReportPublisherTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/batch/report/AnalysisContextReportPublisherTest.java @@ -190,11 +190,13 @@ public class AnalysisContextReportPublisherTest { publisher.dumpModuleSettings(ProjectDefinition.create() .setProperty("sonar.projectKey", "foo") .setProperty("sonar.projectKey", "foo") + .setProperty("sonar.login", "my_token") .setProperty("sonar.password", "azerty") .setProperty("sonar.cpp.license.secured", "AZERTY")); assertThat(FileUtils.readFileToString(writer.getFileStructure().analysisLog())).containsSequence( "sonar.cpp.license.secured=******", + "sonar.login=******", "sonar.password=******", "sonar.projectKey=foo"); } |