diff --git a/eng/pipelines/templates/variables/vmr-build.yml b/eng/pipelines/templates/variables/vmr-build.yml index 53593bf0368a..50e50aa09477 100644 --- a/eng/pipelines/templates/variables/vmr-build.yml +++ b/eng/pipelines/templates/variables/vmr-build.yml @@ -26,11 +26,11 @@ variables: - name: isOfficialBuild value: ${{ and(eq(variables['System.TeamProject'], 'internal'), notin(variables['Build.Reason'], 'PullRequest')) }} -- ${{ if eq(variables['isOfficialBuild'], true) }}: - - name: ibcEnabled +## Note: The use of if expressons underneath the variable is necessary to get the updated isOfficialBuild value +- name: ibcEnabled + ${{ if eq(variables['isOfficialBuild'], true) }}: value: true -- ${{ else }}: - - name: ibcEnabled + ${{ else }}: value: false - name: officialBuildParameter