Running Jenkins pipeline while using shared libraries under vars folder.
Calling a function that exists in the shared libraries under the vars folder. It crashes at this point and the only error I can see is:
ERROR: No build record <path to job>#<build number> could be located
Couldn't find anything in Jenkins system log.
I'm running using a docker container version jenkins/jenkins:2.289.2-lts
On top of docker host ubuntu 18.04