New release 1.0.10

1,198 views
Skip to first unread message

Ognjen Bubalo

unread,
Feb 10, 2013, 4:38:44 PM2/10/13
to jenkins-jacoco-pl...@googlegroups.com
Hello!

Check this new release.

It contains:

JENKINS-16096:  Support for inclusions, exclusions
JENKINS-15011:  Jacoco Plugin 1.0.3 - no threshold config and displays broken graphic link
JENKINS-15366:  Problem displaying Jacoco coverage data in Jenkins for very large number of classes and methods.
JENKINS-15570:  Coverage report includes classes that have been excluded from Jacoco analysis
JENKINS-15180:  should be able to configure "coverage targets"
JENKINS-16310:  Source code loses spacing/indenting due to html white space collapsing.

It should be visible in the update center already. 
Please give as much feedback as you can.

Cheers,
Ogi

Swarley

unread,
Feb 12, 2013, 7:31:40 AM2/12/13
to jenkins-jacoco-pl...@googlegroups.com
Hello Ogi

After upgrading to the new plugin everything seems to be normal but then the builds are changed to unstable:
[qsreporter] Evaluating JaCoCo XML-Report: coverage.xml
[qsreporter] +------------+----------------------------------------------------------------------+
[qsreporter] | Jacoco     | Statement: 54% - Branches: 80% - Methods: 25% - Classes: 50%
[qsreporter] +------------+----------------------------------------------------------------------+

build:

dist:
    [mkdir] Created dir: /var/lib/jenkins/jobs/test f13/workspace/swk_template/build/dist
      [zip] Building zip: /var/lib/jenkins/jobs/test f13/workspace/swk_template/build/dist/template-0.0.0-bin.zip
      [zip] Building zip: /var/lib/jenkins/jobs/test f13/workspace/swk_template/build/dist/template-0.0.0-src.zip

BUILD SUCCESSFUL
Total time: 8 seconds
[CHECKSTYLE] Collecting checkstyle analysis files...
[CHECKSTYLE] Finding all files that match the pattern swk_template/build/checkstyle/checkstyle.xml
[CHECKSTYLE] Parsing 1 files in /var/lib/jenkins/jobs/test f13/workspace
[CHECKSTYLE] Successfully parsed file /var/lib/jenkins/jobs/test f13/workspace/swk_template/build/checkstyle/checkstyle.xml of module  with 0 warnings.
[CHECKSTYLE] Computing warning deltas based on reference build #30
[PMD] Collecting PMD analysis files...
[PMD] Finding all files that match the pattern swk_template/build/pmd/pmd.xml
[PMD] Parsing 1 files in /var/lib/jenkins/jobs/test f13/workspace
[PMD] Successfully parsed file /var/lib/jenkins/jobs/test f13/workspace/swk_template/build/pmd/pmd.xml of module  with 0 warnings.
[PMD] Computing warning deltas based on reference build #30
Archiviere Artefakte
Veröffentliche Javadocs
Zeichne Testergebnisse auf.
[JaCoCo plugin] Collecting JaCoCo coverage data...
[JaCoCo plugin] **/swk_template/build/coverage/jacoco.exec;**/swk_template/build/classes;**/swk_template/src/main/java; locations are configured
[JaCoCo plugin] Number of found exec files: 1
[JaCoCo plugin] Saving matched execfiles:  /var/lib/jenkins/jobs/test f13/workspace/swk_template/build/coverage/jacoco.exec
[JaCoCo plugin] Saving matched class directories:  /var/lib/jenkins/jobs/test f13/workspace/swk_template/build/classes
[JaCoCo plugin] Saving matched source directories:  /var/lib/jenkins/jobs/test f13/workspace/swk_template/src/main/java
[JaCoCo plugin] Loading inclusions files..
[JaCoCo plugin] inclusions: []
[JaCoCo plugin] exclusions: []
[JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=100, minMethod=0, maxMethod=70, minLine=0, maxLine=80, minBranch=0, maxBranch=80, minInstruction=0, maxInstruction=80, minComplexity=0, maxComplexity=80]
[JaCoCo plugin] Publishing the results..
[JaCoCo plugin] Loading packages..
[JaCoCo plugin] Done.
Build step 'Veröffentliche die JaCoCo Testabdeckung' changed build result to UNSTABLE
Finished: UNSTABLE

Do you know what is going on there?

Thanks

Ognjen Bubalo

unread,
Feb 12, 2013, 12:48:27 PM2/12/13
to jenkins-jacoco-pl...@googlegroups.com
Hi Swarley,

The configured maximum thresholds are above the actual coverage. If a coverage is below minimum the build fails, if the coverage is below maximum the build is unstable, if it is above then it is a success.

Cheers,
Ogi


--
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok szolgáltatásbeli Jenkins JaCoCo plugin mailing list csoportra.
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy levelet a következő címre: jenkins-jacoco-plugin-m...@googlegroups.com.
Ha üzenetet szeretne küldeni ebbe a csoportba, küldjön egy e-mailt a(z) jenkins-jacoco-pl...@googlegroups.com címre.
További lehetőségekért látogasson el a(z) https://groups.google.com/groups/opt_out címre.
 
 

Swarley

unread,
Feb 13, 2013, 12:03:05 AM2/13/13
to jenkins-jacoco-pl...@googlegroups.com
Hey Ogi

Thank you very much. I was not aware of this feature.

Awsome work - thanks!

Greetings

Stan Z

unread,
Feb 20, 2013, 7:30:09 AM2/20/13
to jenkins-jacoco-pl...@googlegroups.com
Hello Ogi

I have a very simple project without any source branch at all.
The branch coverage result of jacoco is Zero.

I think in this situation the branch coverage should be N/A instead of zero.
But zero was acceptable for me till 1.0.9.

Those thresholds was added in 1.0.10 which changed my build result from SUCCESS to UNSTABLE.

See the attachment for detail information, please.

The console output is here.

[JaCoCo plugin] Collecting JaCoCo coverage data...
[JaCoCo plugin] **/target/coverage-reports/**.exec;**/classes;**/src/main/java; locations are configured
[JaCoCo plugin] Number of found exec files: 1
[JaCoCo plugin] Saving matched execfiles:  /home/ci/jenkins/jobs/demo1Dailybuild/workspace/ZPortal/target/coverage-reports/jacoco.exec
[JaCoCo plugin] Saving matched class directories:  /home/ci/jenkins/jobs/demo1Dailybuild/workspace/ZPortal/target/ZPortal/WEB-INF/classes /home/ci/jenkins/jobs/demo1Dailybuild/workspace/ZPortal/target/cargo/configurations/tomcat6x/webapps/ZPortal/WEB-INF/classes /home/ci/jenkins/jobs/demo1Dailybuild/workspace/ZPortal/target/classes
[JaCoCo plugin] Saving matched source directories:  /home/ci/jenkins/jobs/demo1Dailybuild/workspace/ZPortal/src/main/java
[JaCoCo plugin] Loading inclusions files..
[JaCoCo plugin] inclusions: [**/*.class]
[JaCoCo plugin] exclusions: []
[JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=0, maxClass=100, minMethod=0, maxMethod=70, minLine=0, maxLine=80, minBranch=0, maxBranch=80, minInstruction=0, maxInstruction=80, minComplexity=0, maxComplexity=80]
[JaCoCo plugin] Publishing the results..
[JaCoCo plugin] Loading packages..
[JaCoCo plugin] Done.
Build step 'Record JaCoCo coverage report' changed build result to UNSTABLE
Finished: UNSTABLE

Do you have any idea for me to work around this problem?

Best Regards

Stan

no_branch_coverage.PNG

Bruno Rezende

unread,
Feb 20, 2013, 7:35:19 AM2/20/13
to jenkins-jacoco-pl...@googlegroups.com
Hi Stan,

I think you can workaround this problem by just changing the
configuration of jacoco plugin. I've done this to several projects we
have and it worked.

Ogji, don't you think by default all these fields should be zero? This
way those who want the new behaviour can change the projects they care
and we keep backward compatibility with projects already created in
jenkins (I had to change > 20 projects yesterday because of this :-(
).
> --
> Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok
> szolgáltatásbeli Jenkins JaCoCo plugin mailing list csoportra.
> Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz
> küldjön egy levelet a következő címre:
> jenkins-jacoco-plugin-m...@googlegroups.com.
> Ha üzenetet szeretne küldeni ebbe a csoportba, küldjön egy e-mailt a(z)
> jenkins-jacoco-pl...@googlegroups.com címre.
> További lehetőségekért látogasson el a(z)
> https://groups.google.com/groups/opt_out címre.
>
>



--
Bruno

Ognjen Bubalo

unread,
Feb 20, 2013, 7:39:34 AM2/20/13
to jenkins-jacoco-pl...@googlegroups.com
Hi,

I think I will create a new release today. This feature will be only used to change the background color of overall summary not the build status.
The release will fix the issue when changing from 1.0.9 to 1.0.10.

Cheers,
Ogi

Ognjen Bubalo

unread,
Feb 20, 2013, 2:25:45 PM2/20/13
to jenkins-jacoco-pl...@googlegroups.com
Hi,

Please checkout this build! I will make the release 1.0.11  tomorrow.

To test the build:
Stop the Jenkins instance. In the Jenkins\plugins\ delete the jacoco dir, jacoco.hpi and create an empty "jacoco.hpi.pinned" file. Then copy this .hpi file into the plugins dir and lunch Jenkins.

Cheers,
Ogi
jacoco.hpi

Stan Z

unread,
Feb 21, 2013, 12:27:23 AM2/21/13
to jenkins-jacoco-pl...@googlegroups.com
Hi Ogi

I attached another pic for your reference.
The background color of branch coverage was changed to orange.
And the Jenkins job result was changed back to SUCCESS.
Looks good for me, Appreciate your working.

But I just wounder the feeling of those guys who do like the UNSTABLE result.
By taking Bruno's advice,  I change the thresholds of branch to zero which also looks good to me.
So changing background color plus default 0 thresholds may be a better backward compatible solution.

best regards
Stan.

> Ha üzenetet szeretne küldeni ebbe a csoportba, küldjön egy e-mailt a(z)

> További lehetőségekért látogasson el a(z)
> https://groups.google.com/groups/opt_out címre.
>
>



--
Bruno

--
Azért kapta ezt az üzenetet, mert feliratkozott a Google Csoportok szolgáltatásbeli Jenkins JaCoCo plugin mailing list csoportra.
Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy levelet a következő címre: jenkins-jacoco-plugin-mailing-list+unsubscribe@googlegroups.com.
Ha üzenetet szeretne küldeni ebbe a csoportba, küldjön egy e-mailt a(z) jenkins-jacoco-plugin-mailing-li...@googlegroups.com címre.
no_branch_coverage_snapshot.PNG

Ognjen Bubalo

unread,
Feb 21, 2013, 5:17:13 AM2/21/13
to jenkins-jacoco-pl...@googlegroups.com
Hi,

Thanks for the feedback. I think I'll make the release to fix an important issue about the inclusion exclusion fields. I think I'll add a checkbox to the configuration later, so everyone can decide if the build status should change.

Cheers,
Ogi

Az erről a csoportról és az ahhoz kapcsolódó e-mailekről való leiratkozáshoz küldjön egy levelet a következő címre: jenkins-jacoco-plugin-m...@googlegroups.com.
Ha üzenetet szeretne küldeni ebbe a csoportba, küldjön egy e-mailt a(z) jenkins-jacoco-pl...@googlegroups.com címre.
Reply all
Reply to author
Forward
0 new messages