You are on page 1of 5

Key concepts for Azure Pipelines users

PipeLine Stage Step


Stage Agent Step
Triggers Publish build artifact
Job Script
Stage
Depends Step
Stage Task Azure App service
On
Deploy
Agent Step
Job Step
Invoke REST api
Task

 A trigger tells a Pipeline to run.


 A pipeline is made up of one or more stages. A pipeline can deploy to one or more environments
.
 A stage is a way of organizing jobs in a pipeline and each stage can have one or more jobs.
 Each job runs on one agent. A job can also be agentless.
 Each agent runs a job that contains one or more steps.
 A step can be a task or script and is the smallest building block of a pipeline.
 A task is a pre-packaged script that performs an action, such as invoking a REST API or publishing
a build artifact.
 An artifact is a collection of files or packages published by a run.
Azure
Artifacts
Pull artefacts
App
service
Trigger build
Trigger realese
Azure Build Azure Release
Azure Repos pipeline pipeline
(Git) dev
Build Job Dev Stage
Push code Web api
Deploy to dev
Get source QA
Viusal Install tools
Studio/code QA Stage
Build Web api
Solution Deploy to QA

Run Test Web


Prod Stage api
Package
Artifacts Deploy to Staging slot
Web
Publish Swap staging and prod api
Developers
Artifacts stage
Implementation of Build Pipeline

 Create a .net Project


 Publish to Azure Repos
 Create PipeLine
 Use the Classic editor
 Select source>Continue
 Select a Template
 Select Pipeline
 Here give to name your build pipline
 In Tasks we have restore,build,test,publish,publish artifacts
 Save And Queue
Set Variable In Pipeline

 Go to the Pipelines page, select the appropriate pipeline, and then select
Edit.
 Locate the Variables for this pipeline.
 Add or update the variable.
 To mark the variable as secret, select Keep this value secret.
 Save the pipeline.

 Variables---
 You can use variables with expressionsto conditionally assign values and
further customize pipelines.
 Variables Type-
 User defined Variable-User-defined variables can be set as read-only.
 System variable-System variables are read-only
 Environment variables-Environment variables are specific to the operating
system you are using
Release Pipeline

 In Azure devOps >Releases>New Pipeline>Select a Templates


 Add Artifacts from Build Pipeline
 Now go to Stage fiil all fields
 Now create a release
 For Adding new stages ,go to Releases Pipeline and add new stage

You might also like