microsoft/azure-pipelines-vscode

if/else expression not compiling for variables

eduard-bystrov opened this issue · 2 comments

variables:
  - ${{ if contains(variables['Build.SourceBranch'], '/Releases/') }}:
    - group: Build.${{ variables['Build.SourceBranchName'] }}
  - ${{ else }}:
    - group: AnotherGroup

Unrecognized value: 'else'. Located at position 1 within expression: else. For more help, refer to https://go.microsoft.com/fwlink/?linkid=842996
/.azure/pipelines/build.yml (Line: 29, Col: 5): Expected at least one key-value pair in the mapping

Hi @eduard-bystrov,
Could you please provide more details about your issue?

sry wrong repository))