comparison metrics.gradle @ 238:d7f0ae9e28af

DEP-12: restrict analysis to default, release and hotfox branches
author smith@nwoca.org
date Thu, 20 Oct 2016 22:13:39 +0100
parents 66a99ce5f60a
children 60c552fce00d
comparison
equal deleted inserted replaced
237:66a99ce5f60a 238:d7f0ae9e28af
32 sonarqube { 32 sonarqube {
33 properties { 33 properties {
34 property "sonar.host.url", "http://sonar.ssdt.io:9000" 34 property "sonar.host.url", "http://sonar.ssdt.io:9000"
35 property "sonar.login", System.getenv('bamboo_SONAR_TOKEN') 35 property "sonar.login", System.getenv('bamboo_SONAR_TOKEN')
36 property "sonar.exclusions","**/ProjectVersion*" 36 property "sonar.exclusions","**/ProjectVersion*"
37 }
38 }
39
40 allprojects {
41 afterEvaluate { project ->
42 project.getTasksByName('sonarqube',false).each {
43 it.enabled = gradle.branchStream in ['develop','release','hotfix' ]
44 }
37 } 45 }
38 } 46 }
39 } 47 }
40 48
41 if (legacySonar) { 49 if (legacySonar) {