This fixes a TFS 2019 (and probably 2018) bug, where multiple build Statuses were incorrectly shown, as getLatestBuildStep wasn't correctly filtering TimelineRecords of type Task.
(For some reason Microsoft has made the TimelineRecord.Type field a String ... so I couldn't create an enum style list like the others)
This should still work for 2017, although now that we (finally) upgraded, I don't really have a way to fully test this, outside just assuming Microsoft haven't touched the version 2.0 API call in 2019.
This fixes a TFS 2019 (and probably 2018) bug, where multiple build Statuses were incorrectly shown, as getLatestBuildStep wasn't correctly filtering TimelineRecords of type Task.
(For some reason Microsoft has made the TimelineRecord.Type field a String ... so I couldn't create an enum style list like the others)
This should still work for 2017, although now that we (finally) upgraded, I don't really have a way to fully test this, outside just assuming Microsoft haven't touched the version 2.0 API call in 2019.