aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-09-18 13:11:24 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-09-19 08:44:49 +0200
commit3ee725bc21421d9a96028f64f237d394e5711b87 (patch)
treee95e9046e4906f841e63f67767fed84ee8d96d61
parent1c18c3a6d670f790f11883308cb5aedb4fabe4fb (diff)
downloadsonarqube-branch-6.6-M1.tar.gz
sonarqube-branch-6.6-M1.zip
Set a version on each analysis to prevent 1 year old snapshots to be purgedbranch-6.6-M1
-rw-r--r--tests/src/test/java/org/sonarqube/tests/qualityModel/NewDebtRatioMeasureTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/qualityModel/NewDebtRatioMeasureTest.java b/tests/src/test/java/org/sonarqube/tests/qualityModel/NewDebtRatioMeasureTest.java
index 90192354c83..7b24e3e76a9 100644
--- a/tests/src/test/java/org/sonarqube/tests/qualityModel/NewDebtRatioMeasureTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/qualityModel/NewDebtRatioMeasureTest.java
@@ -20,13 +20,13 @@
package org.sonarqube.tests.qualityModel;
import com.sonar.orchestrator.Orchestrator;
-import org.sonarqube.tests.Category2Suite;
import java.util.Date;
import javax.annotation.Nullable;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
+import org.sonarqube.tests.Category2Suite;
import util.ItUtils;
import static org.apache.commons.lang.time.DateUtils.addDays;
@@ -136,7 +136,8 @@ public class NewDebtRatioMeasureTest {
"measure/xoo-new-debt-ratio-" + projectVersion,
ItUtils.concat(properties,
// disable standard scm support so that it does not interfere with Xoo Scm sensor
- "sonar.scm.disabled", "false"));
+ "sonar.scm.disabled", "false",
+ "sonar.projectVersion", projectVersion));
}
}