skip to Main Content

Ubuntu – Azure Pipeline conditional variables not working as expected

This is part of my azure pipeline yaml pool: vmImage: ubuntu-latest # Use 'windows-latest' if you have Windows native +Node modules variables: ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: brname: $[variables['System.PullRequest.targetBranchName']] isPreRelease: $[eq(variables['brname'], 'main')] ${{ if or(eq(variables['isPreRelease'], 'True'), eq(variables['isPreRelease'], True)) }}: #…

VIEW QUESTION
Back To Top
Search