Can we configure something where "Testless Build" related to Bamboo Spec execution is ignored as Green Build.
This is messing up with our Merge Checks.
Problem: With PR build run being failed, Bamboo Spec Changes are treated as Green build and that is allowing devs to merge their PR.
Hello @ananda3
Welcome to Atlassian Community!
You can add an exclude pattern to the Linked Repository under Change detection options -> "Exclude all changes that matches" such as:
^(\/bamboo-specs)\/.*
That way, any changes made to the bamboo-specs folder will be ignored by Bamboo and will not produce a build.
But, if you have legitimate changes to the Specs folder, you will have to override the approval and merger process on your VCS as they will not trigger a build.
You will also have to run a manual Specs scan on the repository either via the UI:
Or via the API:
Kind regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
Thanks for sharing workaround. There is a follow-up question, so once scan button is clicked from LinkedRepo, wouldn't that create the testless build?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @ananda3,
By having a Linked Repository that would exclude the "bamboo-specs" folder and running a Specs scan manually, Bamboo will only run a "Testless build" in case the specs code has changed from the previous version on that particular branch and if that's divergent from the default branch. That run is only to apply the new Specs code and will not actually Run the build Plan.
Regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Eduardo Alvarenga
Appreciate your help!!
The overall problem with this Testless Build run is that it is interfering with the merge checks. As an example the merge check is enabled where we are ensuring that master has 1 green build, so when spec changes are getting executed as Testless Build, it overrides the existing RED build and bamboo server ignores that RED and considers spec changes related build as green and allows folks to merge.
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.