aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src/main
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-07-08 14:44:51 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2013-07-08 14:45:18 +0200
commit8b0e83fd25d426cc57e2a056ea65c13cf86760fd (patch)
treedfd27b851867ed5b3dc5050cfb54a520e524716e /sonar-core/src/main
parent0678a178c08bf870fa0d5a8b5523788e5641025e (diff)
downloadsonarqube-8b0e83fd25d426cc57e2a056ea65c13cf86760fd.tar.gz
sonarqube-8b0e83fd25d426cc57e2a056ea65c13cf86760fd.zip
SONAR-4468 Expot alerts in dryRun mode
to support build breaker plugin
Diffstat (limited to 'sonar-core/src/main')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java b/sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java
index dcf0231c742..b6cd161d28f 100644
--- a/sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java
+++ b/sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java
@@ -74,7 +74,8 @@ public class DryRunDatabaseFactory implements ServerComponent {
.copyTable(source, dest, "quality_models")
.copyTable(source, dest, "rules")
.copyTable(source, dest, "rules_parameters")
- .copyTable(source, dest, "rules_profiles");
+ .copyTable(source, dest, "rules_profiles")
+ .copyTable(source, dest, "alerts");
if (projectId != null) {
String snapshotCondition = "islast=" + database.getDialect().getTrueSqlValue() + " and (project_id=" + projectId + " or root_project_id=" + projectId + ")";
template.copyTable(source, dest, "projects", "id in (select project_id from snapshots where " + snapshotCondition + ") or (id=" + projectId + " or root_id=" + projectId + ")");