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 ?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.