mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 00:03:43 +01:00
fix jacoco transmission to sonar
This commit is contained in:
@@ -34,7 +34,7 @@ matrix:
|
||||
env:
|
||||
- JDK="JDK8"
|
||||
- sonar.java.coveragePlugin=jacoco
|
||||
- sonar.jacoco.reportPath=build-reporting/target/coverage-reports/jacoco.xml
|
||||
- sonar.jacoco.reportPath=build-reporting/target/jacoco.xml
|
||||
script:
|
||||
- if [ ! -z "$TRAVIS_TAG" ]; then travis_wait 20 mvn install sonar:sonar -DreleaseTesting; else travis_wait 15 mvn install sonar:sonar -DreleaseTesting; fi
|
||||
|
||||
|
||||
@@ -74,6 +74,27 @@ Copyright (c) 2017 - Jeremy Long. All Rights Reserved.
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>report-merge</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>merge</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<fileSets>
|
||||
<fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
|
||||
<directory>${project.basedir}/../</directory>
|
||||
<includes>
|
||||
<include>dependency-check-utils/target/coverage-reports/*.exec</include>
|
||||
<include>dependency-check-core/target/coverage-reports/*.exec</include>
|
||||
<include>dependency-check-cli/target/coverage-reports/*.exec</include>
|
||||
<include>dependency-check-ant/target/coverage-reports/*.exec</include>
|
||||
<include>dependency-check-maven/target/coverage-reports/*.exec</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>report-aggregate</id>
|
||||
<phase>verify</phase>
|
||||
|
||||
Reference in New Issue
Block a user