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')))


Popular posts from this blog

spark - pyspark reading from excel files

Solving Sonarqube :- Project was never analyzed. A regular analysis is required before a branch analysis