# HG changeset patch # User smith@nwoca.org # Date 1476998019 -3600 # Node ID d7f0ae9e28af2373a7788356fd70a8af224bac65 # Parent 66a99ce5f60a4bdbd162142430f65ce31cf28813 DEP-12: restrict analysis to default, release and hotfox branches diff -r 66a99ce5f60a -r d7f0ae9e28af metrics.gradle --- 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) {