So there, I was developing a scripted pipeline in Jenkins. Everything was going fine until I did a quick refactoring to the…