Use GitVersion (Mainline development mode) for semantic versioning in Azure DevOps using Git Hooks

  Рет қаралды 6,860

Raaviblog

Raaviblog

2 жыл бұрын

This is tested for Basic Merge (no Fast forward) Pull Request Merge Type.
There are four different ways to consume GitVersion itself. You can find each of these options - gitversion.net/docs/usage/
Install GitVersion on Azure DevOps Self hosted agent - gitversion.net/docs/usage/cli...
OR
Install Azure DevOps extension - marketplace.visualstudio.com/...

Пікірлер: 13
@tommiwiren2405
@tommiwiren2405 2 жыл бұрын
Excellent video! Thank you!
@raghur5678
@raghur5678 Жыл бұрын
Hi thanks for the video.. i have one problm like when i am running on my feature branch the Tag version is 1.0.1, whn merging with the Develop Branch its getting changed to 271.1.0,but i want to be with 1.0.1 version for the Client SDK and the Data N Service Dll... but why its getting changed? any idea
@raaviblog105
@raaviblog105 Жыл бұрын
Is develop branch your mainline branch?
@raghur5678
@raghur5678 Жыл бұрын
@@raaviblog105 MAster is the production code where we stored.,we have different branching strategies where we have feature,develop and Master.
@timmkrause6684
@timmkrause6684 2 жыл бұрын
Instead of using a Git hook which every developer needs to configure wouldn't it be better to control this via the GitVersion.yml as well? branches: feature: increment: Minor
@timmkrause6684
@timmkrause6684 2 жыл бұрын
Does work for builds from the feature branch, but not for builds for PRs... PR build versions still only increment patch version in this case, so the Git hook is really needed to bump minor as well for PR builds.
@timmkrause6684
@timmkrause6684 2 жыл бұрын
With the config part from above I get this: feature/another-test -> 1.6.0-another-test.1 PR build: 1.4.14-PullRequest2651.2
@elvargas1327
@elvargas1327 2 жыл бұрын
I don't understand why my minor 'feature' never changes
@raaviblog105
@raaviblog105 2 жыл бұрын
Is it not changing even after adding [+semver:minor].can u explain your setup then may be I can help
@elvargas1327
@elvargas1327 2 жыл бұрын
@@raaviblog105 It worked for me, could you tell me if I'm right? When the change comes from an origin configured in source-branches, does the increment respect the value configured in increment, otherwise it only increases in Patch? For example: main: regex: main tag: '' source-branches: ['main','master'] prevent-increment-of-merged-branch-version: false track-merge-target: false tracks-release-branches: false is-release-branch: false release: regex: release(s)?[/-] tag: beta increment: Minor source-branches: ['main','master'] prevent-increment-of-merged-branch-version: true track-merge-target: false tracks-release-branches: false is-release-branch: true main only increment in Patch, but if realease receives a change from main it increases by minor?
@raaviblog105
@raaviblog105 2 жыл бұрын
I haven't tried with Release branch. With Mainline development, the increment of minor or patch happens at the time of merge into Main branch. this link can give some more info -gitversion.net/docs/reference/modes/mainline
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 10 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 104 МЛН
1❤️
00:17
Nonomen ノノメン
Рет қаралды 13 МЛН
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 4,8 МЛН
Branching Strategies Explained
18:19
DevOps Toolkit
Рет қаралды 129 М.
Semantic Versioning, Docker and Azure Devops
1:46:45
Cornel Human
Рет қаралды 3,4 М.
Control your GitHub releases with GitVersion and GitReleaseManager
49:21
Deploy container to AWS ECS Fargate using Azure DevOps pipeline
12:28
What is Semantic Versioning?
4:46
Bogdan Stashchuk
Рет қаралды 33 М.
Azure DevOps Tutorial for Beginners | CI/CD with Azure Pipelines
36:29
TechWorld with Nana
Рет қаралды 1,1 МЛН
How to Create a CI/CD Pipeline in Azure DevOps | Azure DevOps Tutorial
54:22
BestDotNetTraining
Рет қаралды 322 М.
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 10 МЛН