Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,117
Community Members
 
Community Events
168
Community Groups

Make bitbucket ignore bamboo build result from particular build plan?

Hi Atlassian community,

 

i have a repo, the repo has two build plans X and Y.

 

X is the normal build plan which tells me that the build for the repo is successful. I want this reflected in bitbucket pull requests.

 

Y is a small task that runs every 15 minutes and is not related to the build status of the repo.

 

My problem is that if a PR for the repo is raised and Y is run and succeeds, it looks as if the PR has been successfully built.

 

How can I ignore the build status from Y ?

1 answer

1 accepted

1 vote
Answer accepted

I'm not aware of any way to configure Bitbucket to ignore particular Bamboo build results.

That being said, the build status API for both Bitbucket Server and Bitbucket Cloud are based on associating the build status against a particular commit, so in case your auxiliary plan Y does not actually use the resp. source code, you might be able to achieve your goal by removing the Source Code Checkout task within that plan.

Hi Steffen,

 

In par with above example, What if we still have the requirement of performing any task say (source code check out, build, sonar) in auxillary plan Y and need to ignore  the build results of plan Y ?

 

Can we do that in bamboo

Like Steffen Opel _Utoolity_ likes this

Hi @Nagomi , welcome to the Atlassian Community!

I haven't tried this and am just brainstorming here, but given "the build status APIs [...] are based on associating the build status against a particular commit", maybe you could forego the source code check out in plan Y and pass the source code from plan X as a Bamboo artifact instead (i.e. you can zip the source code, maybe even git archive works)?

Good luck,
Steffen

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

311 views 0 7
Read article

Atlassian Community Events