TL;DR: Obviously in a Jenkins pipeline job you can easily pass parameters downstream. What I want to know is if you can pass them upstream.
It should be as simple as that:
stage ('Build 3') { res = build job: 'job_three', parameters: [[$class: 'StringParameterValue', name: 'filename', value: "$filename"]] echo "$res.buildVariables.filename" }
Assuming that in job_three you do
env.filename = "col new file name"