Hi
I have a project, which stores yaml specs in the same repository it runs a CI for. When I create a PR on BitBucket for this project I expect the pipeline to run, which works fine. My question is though if that PR also modifies yaml specs, these don't get scanned unless they are modified in the default branch. Is there any way to have specs updated also from a feature branch? Does my description make sense? :)
Hi uvv,
Welcome to Atlassian community.
YAML specs scan will work on the default repository which is present in the linked repository in Bamboo ( where specs scan is enabled ).
For example if the main branch has the bamboo.yaml file and you have created the specs repository in Bamboo pointing to this branch then specs scan will work only when changes are committed in the master branch.
what you are looking for here is can be achieved via Enhanced plan branch configuration
https://confluence.atlassian.com/bamboo0906/enhanced-plan-branch-configuration-1376027712.html
Please let me know if this help
**please don't forget to Accept the answer if your query was answered**
Regards,
Shashank Kumar
Hi Shashank,
Thanks, it does do the trick and it seems we already have it enabled. The corner case we encountered though is when the initial branch we select doesn't have the specs available, but the PR targeting this branch has them. We have to manually select the PR branch in order to test the first build and only then to switch it back to the default branch. I've just read the link you mentioned, and unfortunately this is mentioned in the "known limitations" section.
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.