How to identify a Plan with Clover results (we have hundreds of plans)

I understand the Clover link is visible on the Summary line when opening a plan if it was configured to execute Clover.

 

Is there an way to identify which plans among hundreds use Clover? (SQL or otherwise...?)

Thanks,

Craig

1 answer

This widget could not be displayed.

Hi Craig,

 

The following query returns jobs for which the "Use Clover to collect code coverage for this build" check-box is enabled:

select
  project.title, chain.title, job.title, job.full_key
from
  project
  join build as chain on chain.project_id = project.project_id
  join chain_stage as stage on stage.build_id = chain.build_id
  join build as job on job.stage_id = stage.stage_id
  join build_definition on build_definition.build_id = job.build_id
where
  build_definition.xml_definition_data like '%<custom>%<clover>%<exists>true</exists>%';

 

The following query will return you jobs for which the "Clover Report" artifact is defined:

select
  project.title, chain.title, job.title, job.full_key, artifact_definition.label
from
  project
  join build as chain on chain.project_id = project.project_id
  join chain_stage as stage on stage.build_id = chain.build_id
  join build as job on job.stage_id = stage.stage_id
  join artifact_definition on artifact_definition.producer_job_id = job.build_id
where
  artifact_definition.label like 'Clover Report%';

 

Cheers
Marek

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

121 views 2 0
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