I have a jenkinsfile dropped into the root of my project and would like to pull in a groovy file for my pipeline and execute it. The only way that I've been able to get this to work is to create a separate project and use the fileLoader.fromGit
command. I would like to do
def pipeline = load 'groovy-file-name.groovy'
pipeline.pipeline()