I have a pipeline job named buildall which looks like this:
pipeline { stages { stage(\"job1\") { build job: \"job1\"
You can pass all your pipeline parameters with this :
def params=[] env.getEnvironment().each{ k, v -> params.add(string(name:"${k}", value:"${v}")) } def slaveJob = build job: 'BuildJob', parameters:params