Problem statement
When trying to deploy with A0deploy from the yaml configuration file, it remains in an infinite loop showing the following error:
2023-05-15T17:42:14.149Z - [31merror[39m: uncaughtException: false == true date=Mon May 15 2023 17:42:14 GMT+0000 (Coordinated Universal Time), pid=1063, uid=0, gid=0, cwd=/home/jenkins/workspace/EN_auth0-tenant-configuration_st, execPath=/usr/local/bin/node, version=v10.16.3, argv=[/usr/local/bin/node, /home/jenkins/workspace/EN_auth0-tenant-configuration_st/node_modules/.bin/a0deploy, import, -c, ./config/config.st.json, -i, ./tenant.yaml], rss=453524455872, heapTotal=1158651904, heapUsed=320650816, external=251697, loadavg=[4.177734375, 3.36669921875, 2.58056640625], uptime=15760, trace=[column=3, file=timers.js, function=listOnTimeout, line=270, method=null, native=false, column=10, file=timers.js, function=Timer.processTimers, line=223, method=processTimers, native=false], stack=[AssertionError [ERR_ASSERTION]: false == true, at listOnTimeout (timers.js:270:3), at Timer.processTimers (timers.js:223:10)]
It only happens from the Jenkins build, because running the same command with the same configuration locally works correctly. This is happening in almost all environments.
What could it be due to? Did you have a similar issue before?
Troubleshooting
- Check Node version and the Auth0 Deploy CLI version used on both the Jenkins and the local machine
Solution
Update Node version.