Clover select box showing multiple scans/jobs and I want 1.

We have Bamboo integrated with clover. Our build has two jobs, job A and job B. Job B has the clover scan while job A does the original build and deploy. When I go to look at clover coverage, I see two jobs listed in the select box, job A which is incomplete and job B which has the clover results.

Two questions?

1. Is there a way to remove job A? Is there a report hidden under target I need to blast?

2. Is there a way to order job B before job A?

3 answers

1 accepted

0 votes

Is there a way to order job B before job A?

If you want to change an order in which jobs are listed on the 'Stages and Jobs' then just rename these jobs (they're sorted alphabetically).

If you want to change the build order of these jobs, so that in case when JobA fails then JobB won't be executed, then you shall put them into separate stages (note that jobs in the same stage are being executed in parallel).

Build A has no clover results, why show it. I'm looking to have only the jobs with results in the select box.

If I can't get that, then I want to order them the way I want. Having to change the name of a build plan to force order seems improper.

... with results in the select box.

Kind you specify what select box do you have in mind? Are you talking about the 'Stages & Jobs' list on a Build Summary page? I'm asking because I'd like to ensure that we're talking about the same thing.

The select box appears after clicking on the Clover tab. The select box will specify which code coverage summary you will see.

You will see a select box of jobs.

List of jobs on a Build Summary page is a Bamboo feature and is shown no matter whether Clover results are available or not.

0 votes

Hi Dave,

I'm not sure if I reproduced exactly the same:

1. I created a plan with JobA (no clover) and JobB ('automatically integrate clover into this build' selected)

2. I ran the plan.

3. In the build summary I see two jobs listed.

JobA has a following tabs available: Job Summary, Tests, Changes, Artifacts, Logs, Clover, Metadata.

JobB has following tabs: Job Summary, Tests, Changes, Artifacts, Logs, Metadata.

So this looks fine, actually.

However, I've found a following tricky interaction:

* select JobA from a 'Stages & Jobs' list,

* select "Clover" tab for this job, Clover report is shown as expected

* select JobB, it displays a message 'No code coverage data available for this build'

A reason of this is that Bamboo tries to preserve the same active tab when switching between jobs. So URLs selected looks like this:

http://localhost:8085/build/result/viewCloverResult.action?buildKey=CCD-CMA-JOBA&buildNumber=9

http://localhost:8085/build/result/viewCloverResult.action?buildKey=CCD-CMA-JOBB&buildNumber=9

and as you can see the viewCloverResult action is chosen for JobB, which does not have a Clover report of course.

The open question is whether it's a bug (i.e. Bamboo shall switch to a default tab) or a feature (i.e. it shall keep the active tab, even if report is not available). :-)

Cheers
Marek

If your case is different, then please attach screen shots.

0 votes


> Is there a way to remove job A?

Why do you want to remove it?

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

662 views 4 15
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot