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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

262 views 3 8
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