Simple Pipeline
Build -> Tests(QA) -> Deployment(Prod)
Trigger – One which starts an action. On Commit it should trigger a pipeline
Stage – Pipeline contains multiple stages. Stages are logical boundaries. Build, Test and Deployment above are all stages
Job – Stage contains multiple jobs. Build stage contains multiple jobs like asking for VM agent, Copying Target file to drop location
Steps – Job contains multiple steps. Steps can be a task or script which would be run.
Agents would be used to build artifacts in the pipeline. Agents may be based on windows, Linux or mac images which would be available on the fly when the build stage is started during pipeline execution
trigger: - master pool: vmImage: ubuntu-latest stages: - stage: Build jobs: - job: build steps: - script: echo Displayed from Script - task: Npm@1 inputs: command: 'install'
Stages
stages: - stage: string # name of the stage, A-Z, a-z, 0-9, and underscore displayName: string # friendly name to display in the UI dependsOn: string | [ string ] condition: string pool: string | pool variables: { string: string } | [ variable | variableReference ] jobs: [ job | templateReference]