The below code can be used as a starter entry point for your DevOps pipelines. It is designed with best practices in mind with stages and jobs in order to isolate different functionalities and make it modular. You can include more stages,jobs,tasks by copy and pasting the code.
trigger: - none pool: vmImage: ubuntu-latest stages: - stage: stage1 displayName: display name for your stage jobs: - job: job1 displayName: display name for job1 steps: - script: echo job1.task1 displayName: running job1.task1 - job: job2 displayName: display name for job2 steps: - script: echo job2.task1 displayName: running job2.task1
The result is shown below