How do you trigger one Jenkins job from another and pass data?

BeginnerConceptJenkins
Answer

Use the build step. wait: true (default) blocks until the downstream finishes; propagate: false stops a downstream failure from failing the caller.

def result = build job: 'deploy-app', parameters: [
  string(name: 'VERSION', value: env.GIT_COMMIT)
], wait: true
echo "Downstream: ${result.result}"

For complex flows, we prefer a single pipeline with stages over chains of jobs, since job chains are hard to follow and reproduce.

All CI/CD questions

More on Jenkins