TFBuild.IsRunningOnVSTS is confusing when using own build agent
#1580 aperta il 23 apr 2017
Metriche repository
- Star
- (3742 star)
- Metriche merge PR
- (Merge medio 1g 1h) (25 PR mergiate in 30 g)
Descrizione
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?