Getting error when ExtentReport is used while running through CI/CD

Automated test case in katalon using BDD framework. Used ExtentReport in the framework to capture the report. When script is run in local system it is passed and ExtentReport is generated successfully. But when the same script is run through CI/CD pipeline got the below error.

2021-07-28 11:53:29.365 ERROR c.k.k.core.context.internal.TestHooker - ? java.lang.NullPointerException: Cannot invoke method log() on null object
at com.ports.common.utils.CustomReport.log(CustomReports.groovy:88)
at com.ports.common.utils.CustomReport$log$0.callStatic(Unknown Source)
at com.ports.common.utils.CustomReport.log(CustomReports.groovy:80)
at com.ports.common.utils.CustomReport$log$ Source)

Please help where is the issue.