Running clover within a bitbucket pipeline

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
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,735 views 26 12
Join discussion

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