Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Viewing Jacoco code coverage information after pipeline build

Deleted user Mar 10, 2018

We are using Bitbucket to host our closed source Java projects at my company, and we have Bitbucket pipelines turned on for all them. These are Maven projects that use the popular Jacoco plugin to automatically create test coverage reports. I see that the Pipelines automatically pick up test results information from Maven's failsafe and surefire plugins. Can Pipelines also be configured to pick up Jacoco report information as well. Being able to view the full Jacoco report for each project would be awesome. At a minimum, it would really help the effectiveness and efficiency of our code review process if, at a minimum, we are able to view the coverage percentage for each pipeline build.

2 answers

Another non-ideal but just about workable course of action is to put the jacoco report in an artifact. 


artifacts:

- target/site/jacoco/**

Then the artifacts tab in the build can be used to download the report which contains a html file which can be unzipped and viewed (I know, yuck).

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 27, 2018

Hi Saharsh,

Currently there is no way to configure Pipelines to display code coverage reports like our Test Report viewer. The best work around we have at the moment is to publish them externally, e.g. to AWS S3, then link the URLs to the Bitbucket Build Status: https://confluence.atlassian.com/bitbucket/publish-and-link-your-build-artifacts-872137736.html

If viewing the reports in Pipelines is important to your team, you are welcome to open a feature request here: https://bitbucket.org/site/master/issues?status=new&status=open&component=Pipelines

Thanks,

Phil

Deleted user Mar 28, 2018

Thanks for the feedback Philip. I have gone ahead and opened up an enhancement request. Meanwhile, I will see if your suggested workaround is something that can work for us.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events