Azure devops pipelines conditional name
问题 I am using azure-devops pipelines but I am having problems to set the name of the build. Here is a normal build definition. pool: vmImage: 'VS2017-Win2016' name: myBuildName steps: - task: NuGetToolInstaller@0 - task: NuGetCommand@2 inputs: restoreSolution: '$(solution)' What I would like to do is to set the name with a conditional check. If (something) then X otherwise Y I have checked the conditional documents, but no luck. Here is what I would like to do, but obviously does not work # if