]> source.dussan.org Git - sonarqube.git/commitdiff
Set a version on each analysis to prevent 1 year old snapshots to be purged branch-6.6-M1
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 18 Sep 2017 11:11:24 +0000 (13:11 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Tue, 19 Sep 2017 06:44:49 +0000 (08:44 +0200)
tests/src/test/java/org/sonarqube/tests/qualityModel/NewDebtRatioMeasureTest.java

index 90192354c83fcd044487538c410ccb68e7e85c46..7b24e3e76a95dd153f9c0b6c3dfd57dcd62b759c 100644 (file)
 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));
   }
 
 }