diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-09-06 16:34:06 +0200 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-09-12 11:34:59 +0200 |
commit | 39c110298f71325ce73d584e5034acc904c32c40 (patch) | |
tree | 09da55bd5ec1affaa68d7d97dfd588e2a3d41efe /sonar-scanner-engine/src/main/java/org/sonar/scanner/analysis | |
parent | 579aa0457917229ed583c782563552ae957e121d (diff) | |
download | sonarqube-39c110298f71325ce73d584e5034acc904c32c40.tar.gz sonarqube-39c110298f71325ce73d584e5034acc904c32c40.zip |
SONAR-9701 Don't publish coverage, scm and source of unchanged files
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/analysis')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/analysis/DefaultAnalysisMode.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/analysis/DefaultAnalysisMode.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/analysis/DefaultAnalysisMode.java index b90ab462a6e..6e7bf1a508c 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/analysis/DefaultAnalysisMode.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/analysis/DefaultAnalysisMode.java @@ -28,7 +28,6 @@ import org.sonar.api.utils.log.Loggers; import org.sonar.scanner.bootstrap.AbstractAnalysisMode; import org.sonar.scanner.bootstrap.GlobalProperties; import org.sonar.scanner.scan.BranchConfiguration; -import org.sonar.scanner.scan.BranchConfiguration.BranchType; @Immutable public class DefaultAnalysisMode extends AbstractAnalysisMode { @@ -50,13 +49,12 @@ public class DefaultAnalysisMode extends AbstractAnalysisMode { // make sure analysis is consistent with global properties boolean globalPreview = isIssues(globalProps); boolean analysisPreview = isIssues(analysisProps); - boolean shortLivingBranch = branchConfig.branchType() == BranchType.SHORT; if (!globalPreview && analysisPreview) { throw new IllegalStateException("Inconsistent properties: global properties doesn't enable issues mode while analysis properties enables it"); } - load(globalProps, analysisProps, shortLivingBranch); + load(globalProps, analysisProps, branchConfig.isShortLivingBranch()); } private void load(Map<String, String> globalProps, Map<String, String> analysisProps, boolean isShortLivingBranch) { |