colindembovsky / cols-agent-tasks

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

Cannot read property 'endsWith' of undefined #172

Closed dazinator closed 3 years ago

dazinator commented 3 years ago

I ran this task on a self hosted ubuntu 20.04 VM build agent, and it gives the following error:

2021-09-08T16:30:32.5436219Z ##[section]Starting: Replace tokens in env file. 2021-09-08T16:30:32.5447214Z ============================================================================== 2021-09-08T16:30:32.5447719Z Task : Replace Tokens 2021-09-08T16:30:32.5448292Z Description : Replaces tokens in a file using RegEx. Values come from any variable defined in the current Environment. 2021-09-08T16:30:32.5448819Z Version : 1.2.114 2021-09-08T16:30:32.5449245Z Author : Colin Dembovsky (colinsalmcorner.com) 2021-09-08T16:30:32.5450874Z Help : More Information 2021-09-08T16:30:32.5451656Z ============================================================================== 2021-09-08T16:30:32.6945072Z Starting regex replacement in [/home/foo/devops-build-agent/_work/r1/a/foo-build/docker-build/config/environment-variables.devops.env] 2021-09-08T16:30:32.6996416Z ##[error]Cannot read property 'endsWith' of undefined 2021-09-08T16:30:32.7018940Z ##[section]Finishing: Replace tokens in env file.

dazinator commented 3 years ago

I switched to a different token replacement task as I was unable to workaround this bug.