Hi Mehta, Dharmi,
Welcome to the Microsoft Q&A Community Forum. Please note that Azure DevOps questions are not supported here. For expert assistance, refer to the contacts listed in this document.
However, 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 allows developers to bypass the branch policy when completing a pull request.
To enable this option, follow these steps:
- Navigate to the branch policy settings for the desired branch.
- Under the "Policy" section, select "Build validation."
- Click the "Edit" button to modify the policy.
- In the "General" section, enable the "Bypass policies when completing pull request" option.
- Save the changes.
Once this option is enabled, developers can choose to bypass the build validation policy when creating a pull request by selecting the "Bypass" option.
Please note that enabling this option can reduce the effectiveness of your branch policies, so it should be used with caution.
Reference document:https://learn.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops&tabs=browser#bypass-branch-policies
Please don't forget to Accept helpful answer and close this thread.