-
Notifications
You must be signed in to change notification settings - Fork 652
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
Why is the Build number overwritten in Azure Dev Ops #1457
Comments
@JakeGinnivan I know it is a long time ago, but what was the intention behind this change? If someone want his build number to be replaced I think the better solution would be to set his build number to something like Did I miss something here? Best regards |
any updates @JakeGinnivan? |
Don't remember really, but a wild guess would be that we couldn't detect we were in VSTS, or there were restrictions on updates. I see no reason to change |
hi, Maybe for better compatibility it is an option to have an parameter like I hope this explains a bit more why I opened this issue. |
I have the same problem, any update on this? |
@rodchenkov I opend a PR #1770 for this. We will see how this will come out. |
This probably should be an option to set on the task in the pipeline. Some people won't want the build number to be updated, others will, others will set the build number to a GitVersion variable for which a substitution could happen. I previously set the BuildNumber to As I prefer a different GitVersion variable to be used in my build numbers, I just overwrite what GitVersion uses to overwrite whatever is defined in the pipeline definition. |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
This is resolved in #1770 , so I will close this. |
Hi,
I am using the VSTS task to get my nuget packages versioned on build in VSTS ans I was wondering why the "BUILD_BUILDNUMBER" environment variable is being overwritten completely when there is no GitVersion variable in it. I can not see the benefit of this behavior. Did I miss something?
It would be nice to have a name for a build while using GitVersion.
I think here should be a slightly different logic:
GitVersion/src/GitVersionCore/BuildServers/VsoAgent.cs
Line 42 in 8b302e1
Thank you for your help.
KirK
The text was updated successfully, but these errors were encountered: