5.11.1 bump version #3986
Replies: 9 comments
-
Does it happen in other repos? The |
Beta Was this translation helpful? Give feedback.
-
Some Other repos there is no issue to stuck for same version . But in all repos I can not bump patch, even if I provide correct command it go to update minor. But some repos have this issue too. How this major version can derived from date? Name of branch is name: |
Beta Was this translation helpful? Give feedback.
-
No, that wouldn't cause this issue. |
Beta Was this translation helpful? Give feedback.
-
I am also thinking it could be git, but I do not have solution. Do you have any way to to clean it. I tried delete tag loacal and remote couple of times. It did not help me. Do you think this issue will continue after merge to main branch too? Any clue to resolve this. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
If I had this issue, I would check for Git references via SmartGit (with a Personal license). If it doesn't show any obvious issues, I would start Googling Git's plumbing commands to see if Git has any commands to help look for a tag or note. If neither of those help diagnose the issue...
|
Beta Was this translation helpful? Give feedback.
-
I explicitly not storing it in environment variables. How I can update Gitversion in azure devops pipeline?
Following code I am using to read commit message check_semver_format() { Note- As I am using Azure devops pipeline , I think my agent is new for every run and so it can not maintain any state in this variables? You can correct me if I am wrong I saw something this in log, is this tell some story |
Beta Was this translation helpful? Give feedback.
-
here is complete log |
Beta Was this translation helpful? Give feedback.
-
mode: Mainline
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
no-bump-message: '\+semver:\s?(none|skip)'
commit-message-incrementing: Enabled
ignore:
commits-before: 2024-03-09T06:02:00
branches:
main:
regex: ^vertest$ # Matches your developement branch
tag: '' # No tag associated with the feature branch
source-branches: [] |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
GitVersion package
GitVersion.Tool
GitVersion version
5.11.1
Operating system
Linux
What are you seeing?
Can not increase version when I have comment as +semver:patch here is my config file
mode: Mainline
major-version-bump-message: '+semver:\s?(breaking|major)'
minor-version-bump-message: '+semver:\s?(feature|minor)'
patch-version-bump-message: '+semver:\s?(fix|patch)'
no-bump-message: '+semver:\s?(none|skip)'
commit-message-incrementing: Enabled
branches:
release:
regex: ^releases?[/-]
tag: ''
feature:
regex: ^feature?[/-]
tag: ''
What is expected?
Initially branch is tag with 0.0.1 now it expect to go as 0.0.2
But somehow it take 8162023.0.11 and it keep getting same everytime.
I delete all tags from repository but not sure from where it take.
Not sure how to fix it
Steps to Reproduce
Configure as above and then run the pipeline , it support to increase it. But looks like this part never increase it
and this is part of your code, I am just calling it
displayName: 'Install GitTools'
inputs:
versionSpec: '5.11.1'
name: CalculateSemVer
displayName: 'Calculate SemVer'
inputs:
useConfigFile: true
configFilePath: './azure-pipelines/GitVersion.yml'
currentVersion=$(GitVersion.SemVer)
echo "currentversion is $currentVersion"
echo "##vso[task.setvariable variable=semversion;isOutput=true;]$currentVersion"
RepositoryFixture Test
NA
Output log or link to your CI build (if appropriate).
Beta Was this translation helpful? Give feedback.
All reactions