]> source.dussan.org Git - sonarqube.git/commitdiff
Cirrus - run unit tests on PostgreSQL
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 13 Nov 2018 06:59:59 +0000 (07:59 +0100)
committerSonarTech <sonartech@sonarsource.com>
Fri, 16 Nov 2018 19:21:03 +0000 (20:21 +0100)
server/sonar-db-core/build.gradle

index 03861dfcd769f4643b18459929b80b669488a029..e0cd63bf72dbd5c91a9ceab9ac2e476d28006c45 100644 (file)
@@ -46,7 +46,9 @@ task createDB(type:JavaExec) {
   main = 'org.sonar.db.CreateDb'
   classpath = sourceSets.test.runtimeClasspath
   systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
-  systemProperty 'sonar.runtimeVersion', project.version
+  if (!project.version.endsWith("-SNAPSHOT")) {
+    systemProperty 'sonar.runtimeVersion', project.version
+  }
 }
 
 test {