colindembovsky / cols-agent-tasks

Colin's ALM Corner Custom Build Tasks
MIT License
83 stars 65 forks source link

TFS 2017.3 gives error when using the coverage gate #158

Open jkwinder opened 4 years ago

jkwinder commented 4 years ago

I'm getting the following error when using the coverage gate task on a TFS 2017.3 environment using the OAUTH token:

2020-09-09T15:35:24.9638272Z ##[debug]Detected token: creating bearer cred handler 2020-09-09T15:35:24.9658595Z ##[debug]Connecting to test API 2020-09-09T15:35:24.9664236Z ##[debug]Getting coverage data 2020-09-09T15:35:25.0906527Z ##[debug]Analyzing coverage data 2020-09-09T15:35:25.0911201Z ##[debug]Caught an error - logging 2020-09-09T15:35:25.0911805Z ##[debug]task result: Failed 2020-09-09T15:35:25.0914703Z ##[error]Cannot read property 'coverageStats' of undefined 2020-09-09T15:35:25.0915090Z ##[debug]Processed: ##vso[task.issue type=error;]Cannot read property 'coverageStats' of undefined 2020-09-09T15:35:25.0915749Z ##[debug]Processed: ##vso[task.complete result=Failed;]Cannot read property 'coverageStats' of undefined 2020-09-09T15:35:25.0916021Z ##[debug]Leaving Coverage Gate task 2020-09-09T15:35:25.1019417Z ##[section]Finishing: Fail if coverage delta is below 0