DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Using Azure DevOps Pipeline With Gopaddle for No-Code Kubernetes Deployments
  • Mule 4 Continuous Integration Using Azure DevOps
  • Optimizing Azure DevOps Pipelines With AI and Continuous Integration
  • A Comprehensive DevSecOps Guide: Key Considerations to Effectively Secure Your CI/CD Pipeline

Trending

  • Dear Micromanager: Your Distrust Has a Job; It’s Just Not the One You’re Doing
  • AI Agents in Java: Architecting Intelligent Health Data Systems
  • LLM Integration in Enterprise Applications: A Practical Guide
  • Understanding MCP Architecture: LLM + API vs Model Context Protocol
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. DevOps and CI/CD
  4. Release Pipeline Using Azure DevOps

Release Pipeline Using Azure DevOps

Extend the basic pipeline which was created in the previous blog by creating a release pipeline that will help us not only automate a deployment but complete the release.

By 
Gaurav Dhimate user avatar
Gaurav Dhimate
·
Akshata Sawant user avatar
Akshata Sawant
·
Feb. 17, 21 · Tutorial
Likes (5)
Comment
Save
Tweet
Share
24.2K Views

Join the DZone community and get the full member experience.

Join For Free

In our previous article (https://dzone.com/articles/deploying-mulesoft-using-azure-devops), we’ve seen the basics and how to create a pipeline. In this particular blog, we will see how to extend the basic pipeline which was created in the previous blog by creating a release pipeline that will help us not only automate a deployment but complete the release. But before creating a new release pipeline, let’s understand what it is and why we need to create it.

Release Pipeline

A release pipeline is a conceptual process by which we take committed code into production. As such, a release pipeline can be as ephemeral or as real as we want to make it. The fundamental release pipeline from code change to production software. A means of triggering the pipeline to run.

Release pipeline for pre-production and production stages

Creating an Azure Release Pipeline

Let’s create a release pipeline in Azure DevOps.

Login into Azure DevOps account and go to Releases → New pipeline

Releases < New pipeline

Once you click, you’ll get options to choose the template. Click on the cross button as we’ll be starting with a blank template. 

Select a template UI

This is the default section which you’ll see.

It’s divided into 2 sections:

  1. Artifacts
  2. Stages

An artifact is a deployable component of your application. Azure Pipelines can deploy artifacts that are produced by a wide range of artifact sources, and stored in different types of artifact repositories.

And stages will include our deployment stages like - dev, test, and prod, etc.

Artifacts and Stages

Click on Add an artifact, you can select the source type of artifact as to where your build is currently stored.

In case, you’re using a pipeline wherein you’re storing the built artifact then you can select the first option or the 2nd option Azure Repo if you’re directly taking the code from the repo without the use of the pipeline.

Add new release pipeline

In my case, I’ve already created a pipeline and I’ll be using the first option.

There are more options from where you can select artifacts.

Once you’ve selected the suitable option click Add.

Now we’re going to phase 2, i.e., adding a new stage.

In the Stages section, click on add and select Empty job.

Add > Empty job

Rename your stage and close it. You can click the save option as it’s not automatically saved!

Rename and save

In order to add more functionalities to your stage, click on Task > Select your stage. 

Task > Select your stage

You can add functionalities as per your requirement. Also, add variables and variable groups if they apply to all the stages.

Add tasks and variables

Once that you have your stage configured as per your requirement, you can clone the stage to create more similar stages. This way you’ll save time and don’t have to configure it again and again.

Click Clone Stage to have different stages as per your requirements.

Clone different stages

This is how it’ll look on cloning. 

Now click on the individual stages to rename them and also the pipeline.

Once that you’ve renamed the stages, you might have to set pre-deployment conditions like user permissions, triggers, etc. for which you can click on pre-deploy.

Triggers, Pre-deployment approvals 

We have selected our build Artifact you can enable a continuous deployment trigger which helps you to create a new release every time the build is available.

Click on the Continuous Deployment Trigger.

Continuous deployment trigger

Set continuous deployment trigger to master

Now you can click Create Release. 

Create release

Once done a new release will be triggered once the CICD pipe completes successfully and generates an artifact.

Conclusion

We have seen how to create a release pipeline using Azure DevOps with the artifact source being the CICD pipeline.

Thanks for reading.

Pipeline (software) Release (computing) azure Continuous Integration/Deployment DevOps Artifact (UML)

Opinions expressed by DZone contributors are their own.

Related

  • Using Azure DevOps Pipeline With Gopaddle for No-Code Kubernetes Deployments
  • Mule 4 Continuous Integration Using Azure DevOps
  • Optimizing Azure DevOps Pipelines With AI and Continuous Integration
  • A Comprehensive DevSecOps Guide: Key Considerations to Effectively Secure Your CI/CD Pipeline

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook