Running clover within a bitbucket pipeline Edited

I have a Gradle multi-project build that compiles Java and runs tests with code coverage using Clover. This runs fine on my local machine, either native or within the pipeline's Docker container, and used to run fine within our Bamboo server.

However since moving it to Pipelines I've been seeing a lot of failures within the build. My guess is that this is something related to the Docker environment or the resources it has.

Has anyone else run into issues with this?

Caused by: java.lang.NullPointerException 
at com.atlassian.clover.reporters.ColumnFormat$FloatColumnFormat.sortValue(ColumnFormat.java:145)

at com.atlassian.clover.reporters.Column.sortValue(Column.java:96)

at sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at clover.org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)

at clover.org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)

at clover.org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
... 108 more

[ant:clover-report] nulljava.lang.NullPointerException
at com.atlassian.clover.reporters.json.RenderMetricsJSONAction.call(RenderMetricsJSONAction.java:60)

at com.atlassian.clover.util.CloverExecutors$LoggingCallable.call(CloverExecutors.java:91)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

0 comments

Comment

Log in or Sign up to comment
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

246 views 2 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you