New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+0 in Version numbers (VSTS) #758
Comments
Here is the build output of such a build:
Build was for |
Just looked into this, we are using FullSemVer because otherwise you get errors with duplicated build numbers if you are using continuous deployment mode. The variables work as you would expect |
Am doing a trim now for the +0, but if it's anything else it wont. Also make sure you are using SemVer not FullSemVer in the substitution? Anyways, hopefully not an issue with 3.4.0 |
@JakeGinnivan I just tested with GitVersion 3.4.0 and I still get You mention that this is expected behavior. What I don't get is that it once returned version number without the metadata (1.0.75) for GitFlow master commits for |
I think FullSemVer always returns the +metadata but SemVer doesn't? Maybe at some point we switched the default. You can always change your tfs build number to |
Sure, I could switch to |
Id love to know what it is :P I just have no idea |
Also strange that it doesn't remove the +0 from the build number with 3.4.0, which should now happen with your code in place... |
It's actually However what is needed is the aggregated version. The semver is 1.2.1+4, but I need 1.2.5, any thoughts? Below is the debug log.
|
Since around mid December I sometimes receive strange version numbers in VSTS builds for repos hosted on VSTS.
Using GitFlow, for a master build the version number looks now like
2.0.0.+0
instead of2.0.0
.Sometimes it even picks the wrong version or makes stuff like
1.2.0+2
.The text was updated successfully, but these errors were encountered: