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

The specified initialization vector (IV) does not match the block size for this algorithm