@Karmel Naser Welcome to Microsoft Q & A Community Forum. Kindly Azure Devops questions are not supported on this forum. For expert assistance, reach out to the contacts listed in this document.
That being said, to make Build Validation within the branch policy controllable, you can enable the "Bypass policies when completing pull request" option in the branch policy settings. This option allows developers to bypass the branch policy when completing a pull request.
To enable this option, follow these steps:
- Go to the branch policy settings for the branch you want to configure.
- Under the "Policy" section, select "Build validation".
- Click on the "Edit" button to edit the policy.
- Under the "General" section, enable the "Bypass policies when completing pull request" option.
- Save the changes.
With this option enabled, developers can choose to bypass the build validation policy when creating a pull request. They can do this by selecting the "Bypass" option when creating the pull request.
Please note that enabling this option can reduce the effectiveness of your branch policies, so use it with caution.
Reference document : https://learn.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops&tabs=browser#bypass-branch-policies