Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Need to create a YAML based azure build pipeline i.e, need to run particular tasks like only build step when it is PR automated and when the same pipeline manually run it should run build task along with archive and publish artifact tasks
Yes; you can use the Build.Reason pre-defined variable in a task condition, like this for example:
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
Required, but never shown