-
Bug
-
Resolution: Cannot Reproduce
-
Blocker
-
Jenkins version: 2.107.1
Jacoco Plugin : 3.01
InfluxDB Plugin 1.14
InfluxDB Plugin is not working publishing Jacoco reports. jacoco_data table is also not created. Influx db plugin says it published successfully
Using Pipeline
step([$class: 'InfluxDbPublisher', customData: null, customDataMap: null, customPrefix: null, target: 'jacocotarget'])
Console Output
[Pipeline] jacoco [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] **/target/jacoco.exec;**/classes;**/src/main/java; locations are configured [JaCoCo plugin] Number of found exec files for pattern **/target/jacoco.exec: 1 [JaCoCo plugin] Saving matched execfiles: /var/jenkins_home/workspace/mypipeline/service-1/target/jacoco.exec [JaCoCo plugin] Saving matched class directories for class-pattern: **/classes: [JaCoCo plugin] - /var/jenkins_home/workspace/mypipeline/service-1/target/classes 13 files [JaCoCo plugin] Saving matched source directories for source-pattern: **/src/main/java: [JaCoCo plugin] - /var/jenkins_home/workspace/mypipeline/service-1/src/main/java 13 files [JaCoCo plugin] - /var/jenkins_home/workspace/mypipeline/service-2/src/main/java 13 files [JaCoCo plugin] - /var/jenkins_home/workspace/mypipeline/service-3/src/main/java 13 files [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] [JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=0, minMethod=0, maxMethod=0, minLine=0, maxLine=0, minBranch=0, maxBranch=0, minInstruction=0, maxInstruction=0, minComplexity=0, maxComplexity=0] [JaCoCo plugin] Publishing the results.. [JaCoCo plugin] Loading packages.. [JaCoCo plugin] Done. [JaCoCo plugin] Overall coverage: class: 77, method: 55, line: 60, branch: 40, instruction: 71 [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Report) [Pipeline] step ... ... ... [InfluxDB Plugin] Publishing data to: [url=http://172.17.0.3:8086, description=jacocotarget, username=root, password=*****, database=grafana] [InfluxDB Plugin] Completed. [InfluxDB Plugin] Publishing data to: [url=http://172.17.0.3:8086, description=jacocotarget, username=root, password=*****, database=grafana] [InfluxDB Plugin] Completed.
It creates jenkins_data table under grafana database but will not create jacoco_data
I have downgraded to Jacoco 2.3- SNAPSHOT plugin and it worked with this plugin.
[InfluxDB Plugin] Publishing data to: [url=http://172.17.0.3:8086, description=jacocotarget, username=root, password=*****, database=grafana] [InfluxDB Plugin] Jacoco data found. Writing to InfluxDB... [InfluxDB Plugin] Completed.
Docs also need to be updated to give some examples for each of the configuration. It's very hard to debug with little documentation around this.
Looks like there is a breaking change between Jacoco plugin versions 2 and 3. I will add support for the latest Jacoco plugin version.