@@ -51,6 +51,8 @@ allprojects { | |||
def repository = project.hasProperty('cix') ? 'sonarsource-qa' : 'sonarsource' | |||
maven { | |||
url "https://repox.sonarsource.com/${repository}" | |||
// The environment variables ARTIFACTORY_PRIVATE_USERNAME and ARTIFACTORY_PRIVATE_PASSWORD are used on QA env (Jenkins) | |||
// On local box, please add artifactoryUsername and artifactoryPassword to ~/.gradle/gradle.properties | |||
def artifactoryUsername = System.env.'ARTIFACTORY_PRIVATE_USERNAME' ?: (project.hasProperty('artifactoryUsername') ? project.getProperty('artifactoryUsername') : '') | |||
def artifactoryPassword = System.env.'ARTIFACTORY_PRIVATE_PASSWORD' ?: (project.hasProperty('artifactoryPassword') ? project.getProperty('artifactoryPassword') : '') | |||
if (artifactoryUsername && artifactoryPassword) { |
@@ -47,8 +47,6 @@ task createDB(type:JavaExec) { | |||
classpath = sourceSets.test.runtimeClasspath | |||
systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl') | |||
systemProperty 'sonar.runtimeVersion', System.getProperty('sonar.runtimeVersion') | |||
systemProperty 'orchestrator.artifactory.apiKey', System.getProperty('orchestrator.artifactory.apiKey') | |||
systemProperty 'orchestrator.artifactory.repositories', System.getProperty('orchestrator.artifactory.repositories') | |||
} | |||
test { |
@@ -92,8 +92,6 @@ task integrationTest(type: Test) { | |||
jacoco.enabled = false | |||
systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl') | |||
systemProperty 'orchestrator.artifactory.apiKey', System.getProperty('orchestrator.artifactory.apiKey') | |||
systemProperty 'orchestrator.artifactory.repositories', System.getProperty('orchestrator.artifactory.repositories') | |||
systemProperty 'sonar.runtimeVersion', System.getProperty('sonar.runtimeVersion') | |||
def category = System.getProperty('category') |