Build Your first CI/CD Pipeline in Azure DevOps

QA Talks Community
4 min readApr 30, 2022

Azure DevOps by Microsoft Azure is one of the leading tools that automate CI/CD’s process and, in turn, supports automatic builds and code projects to make them available to others. The Azure pipelines combine Continuous Integration (CI) and Continuous Delivery (CD) to consistently test and build the code and ship it to the target environment.

What is a CI/CD Pipeline?

A CI/CD pipeline is used to automate the process of continuous integration and continuous deployment. The pipeline facilitates the software delivery process via stages like Build, Test, Merge, and Deploy.

In simple words, a pipeline may sound like an overhead, but it isn’t. Instead, it’s a runnable specification of steps that reduce developers’ manual work by delivering a new version of software productively and saving time.

· Stages of a CI/CD Pipeline:

o Source Stage

o Build Stage

o Test Stage

o Deploy Stage

What is Azure DevOps?

Azure DevOps is a collection of services given by Microsoft Azure. It provides development services for a team to support, plan, collaborate, build, and deploy applications. It provides integrated features in a browser or an IDE(Integrated Development Environment). Some of the services for developers are :

· Azure Repos

· Azure Pipelines

· Azure Boards

· Azure Test Plans

· Azure Artifacts

What is Azure Pipelines?

The Azure CI/CD pipeline simplifies continuous integration and continuous delivery (CI/CD) in the application development process. You can start from the source stage with existing code on GitHub or on-premise containers. The Azure Repos can maintain a central repository, and the Azure pipelines maintain build and release pipelines for the given project. The Azure DevOps CI/CD process is a crucial process with all the required dev services.

Build Pipeline

  1. Click on the Build Pipelines on the Azure Dashboard

2. Click on the New Pipeline — to create a new build pipeline

3. Select your repository

4. You can use Classic editor or YAML pipelines

5. Now add the Agent job and save the pipeline to build your project

o If you are using the maven project select the maven task and add it to the agent job and complete the setup

o And publish the artifact as a drop

6. Now click on the Run Pipeline

7. After execution the summary looks like below

Release Pipeline

1. Select Releases under the Pipelines section from the left side

2. The release pipeline manages the deployments in Azure DevOps. Click on Edit to examine the pipeline

3. Below the release pipeline’s name, you will find the same tabs as in the build pipeline

4. Under the Pipeline tab, go to the Artifacts and select Drop. The build pipeline we examined before is the output to the Artifact

5. The release pipeline has an enabled Continuous deployment trigger. This executes a deployment every time a new build takes place. You can also disable the trigger, where the deployments will require manual execution

6. Select the dev stage and then click on the Tasks tab at the top. The tasks define all the activities your deployment performs. As you can see in the below figure

7. On the left pane, you will find Releases under Pipelines. This shows the history of releases

8. Select the release number to view the release summary. There are menus to explore, like associated work items, release summary, and tests

Believe the topics are useful! keep learning and sharing!


Blogger of the month program: Register below



QA Talks Community

Welcome to QA Talks, a community-based startup that's mainly focused on QA blogs & talks —