Not able to use predefined variable – [‘System.PullRequest.targetBranchName’] in ADO during if condition for selecting specific environment
I have requirement to trigger pipeline when pull request is raised in ADO and when the triggered pipeline gets success, merge will be processed (using Branch policies). default value for environment parameter is NONPROD, but when pipeline auto triggers, I want to choose other environment based on target branch like NFT for develop and PROD for main.