You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have observed that the object returned by the GitVersion alias is different depending on the OutputType settings property. If set the OutputType to 'GitVersionOutput.BuildServer', GitVersion returns an object where the properties contain NULL but if I omit the OutputType setting, the properties on the returned object are properly initialized.
It was suggested to me to invoke the GitVersion alias twice to work around this issue but I still think the value returned by this alias should be consistent. At the very least, the documentation should be updated to warn people about this behavior.
@Jericho I agree that we need to do something, however, we have to remember that Cake is simply a wrapper around the underlying tool. If you run gitversion directly using the buildserver option, you won't get any JSON output.
I have observed that the object returned by the GitVersion alias is different depending on the OutputType settings property. If set the OutputType to 'GitVersionOutput.BuildServer', GitVersion returns an object where the properties contain NULL but if I omit the OutputType setting, the properties on the returned object are properly initialized.
It was suggested to me to invoke the GitVersion alias twice to work around this issue but I still think the value returned by this alias should be consistent. At the very least, the documentation should be updated to warn people about this behavior.
For more details including sample code to reproduce, see this StackOverflow question
The text was updated successfully, but these errors were encountered: