It's a little unclear if you want to reference the script or the work of another script, so I answer both:
Pipeline script The "load" step will execute another pipeline script. If you have both scripts in the same directory, you can load it as follows:
def pipelineA = load "pipeline_A.groovy" pipelineA.someMethod()
Another script (pipe_a.groovy):
def someMethod() { //do something } return this
Pipeline work
If you are talking about doing another job on the pipeline, the "build job" step can do the following:
build job: '<Project name>', propagate: true, wait: true
distribute: distribute errors
wait: Wait for completion
If you have work options, you can add them as follows:
build job: '<Project name>', parameters: [[$class: 'StringParameterValue', name: 'param1', value: 'test_param']]
source share