annotate metrics70.gradle @ 347:1d55012b6af3

add println to see env props
author Marc Davis <marc.davis@mcoecn.org>
date Tue, 25 Jul 2023 15:20:58 -0400
parents 36b6c48ee6c7
children de8c350c511a
rev   line source
290
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
1
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
2 buildscript {
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
3 repositories {
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
4 maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
5 maven { url 'https://docker.ssdt.io/artifactory/ssdt-repo' }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
6 }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
7 dependencies {
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
8 classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3"
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
9 }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
10 }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
11
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
12 apply plugin: org.sonarqube.gradle.SonarQubePlugin
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
13
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
14 sonarqube {
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
15 properties {
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
16 property "sonar.host.url", "http://sonar.ssdt.io:9000"
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
17 property "sonar.login", System.getenv('bamboo_SONAR_TOKEN')
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
18 property "sonar.exclusions","**/ProjectVersion*"
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
19 }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
20 }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
21
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
22 allprojects {
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
23 afterEvaluate { project ->
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
24 project.getTasksByName('sonarqube',false).each {
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
25 it.enabled = gradle.branchStream in ['release']
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
26 }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
27 }
36b6c48ee6c7 SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
Kyle Miller <kyle.miller@mcoecn.org>
parents:
diff changeset
28 }