azure devops multiple custom condition in yaml

 

In case you run into a situation whereby you need to specify multiple condition in your task / job, you can try the following command :-



conditionand(succeeded(), or(eq(variables['Build.Reason'], 'PullRequest')
eq(variables['Build.SourceBranch'], 'refs/heads/master')))

Comments

Popular posts from this blog

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error