TFBuild.IsRunningOnVSTS is confusing when using own build agent
#1,580 opened on Apr 23, 2017
Description
What You Are Seeing?
I have a VSTS build agent, which is triggering a cake build on GitHub commits.
I tried using the TFBuild.IsRunningOnVSTS to check if this was a build running on VSTS, as I am also using AppVeyor.
What is Expected?
I would have expected TFBuild.IsRunningOnVSTS to return true. It returned false.
This seems to be per design as seen in the TFBuildProvider
What version of Cake are you using?
Latest
I discussed this briefly with @patriksvensson on Gitter and we kind of agreed that the IsRunningOnVSTS and IsRunningOnTFS properties could be a bit misleading.
@patriksvensson suggested a possible rename:
IsRunningOnVSTS -> IsRunningOnSharedAgent
IsRunningOnTFS -> IsRunningOnOwnAgent
To me this would be much more clear as VSTS can both run shared and own agents.
@agc93 you seem to be the original author of this feature, what do you think about this?