Grails Clover plugin - Bamboo looks in wrong directory for Clover results

Using plugin clover:4.0.2 with Grails 2.3.7, Bamboo 5.3

 

When clover is enabled (i.e. Awhile the plugin writes the report to target\clover.

Setting the configuration option in BuildConfig.groovy reportdir seems to have no effect:

// Clover plugin configuration
clover {
    on = true
    reportdir = "target/site/clover"  // Because Bamboo looks here, and default is target/clover
    directories = ['src/java', 'src/groovy', 'test/unit', 'test/integration', 'grails-app']
    includes = ['**/*.groovy', '**/*.java']
    excludes = ['**/conf/**', '**/plugins/**', '**/migrations/**']
    json = true
    title = "${appName} ${appVersion} (Grails ${grailsVersion})"
}

 

How do I make them both use the same directory?

1 answer

It appears that the automatic configuration overrides the reportdir I set, and reverts to the default target\clover. I suppose this is intended behaviour, but the grails plugin should be pointing to the same report directory by default.

Setting the build to Clover is already integrated into this build... and modifying the XML location works, ensuring that the on option is set to 'true'. Simplified config now looks like:

clover {
    on = true
    includes = ['**/*.groovy', '**/*.java']
    excludes = ['**/conf/**', '**/plugins/**', '**/migrations/**']
    json = true
    title = "${appName} ${appVersion} (Grails ${grailsVersion})"
}

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,321 views 0 5
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