I have a groovy file, I want to run from the Jenkinsfile.
ie. load script.groovy
load script.groovy
However, I am not sure how I can reference this file if it is store
If deploy_esb.groovy file is stored in the same SCM as the Jenkinsfile you can do:
node { def workspace = pwd() load "${workspace}@script/esb_deploybar_pipeline/deploy_esb.groovy" }