Pipeline: Groovy

load: Evaluate a Groovy source file into the Pipeline script

Takes a filename in the workspace and runs it as Groovy source text.

The loaded file can contain statements at top level or just load and run a closure. For example:

    def pipeline
    node('slave') {
        pipeline = load 'pipeline.groovy'

Where pipeline.groovy defines functionA and functionB functions (among others) before ending with return this;


Current directory (pwd()) relative path to the Groovy file to load.

Type: String

parallel: Execute in parallel

org.kohsuke.stapler.NoStaplerConstructorException: There’s no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.workflow.cps.steps.ParallelStep