Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using GitFlow in Azure DevOps (Does it mean multiple pipelines?)

Our dev team want to branch out (bad joke) into using a GitFlow like branching system where there would be a dev, uat and release branches(which would all need building from), I cant see a clever way of using the same pipeline to deploy different branches, could someone let me know the best way to do it? Is it literally create multiple pipelines for each branch needed?

like image 830
Staggerlee011 Avatar asked Jan 07 '19 11:01

Staggerlee011


People also ask

Can you have multiple Azure Pipelines?

As far as I can tell from the docs it is not possible to define multiple pipelines in a single .

What is Gitflow for?

Git Flow is an abstract idea of a Git workflow. It helps with continuous software development and implementing DevOps practices. The Git Flow Workflow defines a strict branching model designed around the project release. This provides a robust framework for managing larger projects.

What are the types of Pipelines in Azure DevOps?

Azure Pipelines combines continuous integration (CI) and continuous delivery (CD) to test and build your code and ship it to any target. Continuous Integration (CI) is the practice used by development teams of automating merging and testing code.


1 Answers

No, you don't need to create multiple release pipelines.

I don't know what you do in the build pipelines, but in the release you can create one release pipeline with multiple "Stages" (for dev, UAT, and release), and multiple artifacts, in each stage and artifact, you can configure the branch, from which branch the artifacts will be.

See this configuration:

enter image description here:

enter image description here

Of course, you need to configure the triggers, you don't want to deploy the 3 stages immediately after release (you can also "play" with it, put the release stage after the UAT, for example).

like image 58
Shayki Abramczyk Avatar answered Sep 20 '22 05:09

Shayki Abramczyk