File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 30
30
checkout scm
31
31
withCredentials([string(credentialsId : ' spring-sonar.login' , variable : ' SONAR_LOGIN' )]) {
32
32
try {
33
- sh " ./gradlew clean jacocoTestReport sonarqube -Dsonar.jacoco.reportPaths='**/build/jacoco/*.exec' -PexcludeProjects='**/samples/**' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --refresh-dependencies --no-daemon --stacktrace"
33
+ sh " ./gradlew sonarqube -PexcludeProjects='**/samples/**' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --refresh-dependencies --no-daemon --stacktrace"
34
34
} catch (Exception e) {
35
35
currentBuild. result = ' FAILED: sonar'
36
36
throw e
Original file line number Diff line number Diff line change @@ -19,23 +19,8 @@ ext.milestoneBuild = !(snapshotBuild || releaseBuild)
19
19
20
20
dependencyManagementExport. projects = subprojects. findAll { ! it. name. contains(' -boot' ) }
21
21
22
- // Disable JaCoCo when not explicitly requested to enable caching of test
23
- // See https://discuss.gradle.org/t/do-not-cache-if-condition-matched-jacoco-agent-configured-with-append-true-satisfied/23504
24
- gradle. taskGraph. whenReady { graph ->
25
- def enabled = graph. allTasks. any { it instanceof JacocoReport }
26
- subprojects { project ->
27
- project. plugins. withType(JacocoPlugin ) {
28
- project. tasks. withType(Test ) {
29
- jacoco. enabled = enabled
30
- }
31
- }
32
- }
33
- }
34
-
35
-
36
22
subprojects {
37
23
plugins. withType(JavaPlugin ) {
38
24
project. sourceCompatibility= ' 1.8'
39
25
}
40
26
}
41
-
You can’t perform that action at this time.
0 commit comments