Mercurial > public > develkit
changeset 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 |
files | metrics.gradle |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/metrics.gradle Thu Oct 20 19:03:18 2016 +0100 +++ b/metrics.gradle Thu Oct 20 22:13:39 2016 +0100 @@ -36,6 +36,14 @@ property "sonar.exclusions","**/ProjectVersion*" } } + + allprojects { + afterEvaluate { project -> + project.getTasksByName('sonarqube',false).each { + it.enabled = gradle.branchStream in ['develop','release','hotfix' ] + } + } + } } if (legacySonar) {