Azure Pipelines has Expressions and Conditions, how can I assign one of two values to a variable, based on a condition.
Is there a way to accomplish this?
${{ if endsWith( variables['Build.SourceBranchName'], '/master' ) }}:
buildVersion: variables['mavenVersion']
${{ else }}:
buildVersion: variables['Build.SourceBranchName']