title: jenkins get result from triggered job and use it in other stages
body: <p>i have a jenkins pipeline witch triggers another pipeline. is it possible to save the result from this triggerd job pipeline in the first pipeline?
  Example pipelie 1:</p>
  
  <pre><code>stage('do something') {
    when { expression { params.true == true } }
      steps {
        script {
          env.var = build job: 'jenkinsjob2',
                            parameters: [
  
                            ]
  
        print(env.var)
        }
      }
  }
  </code></pre>
  
  <p>jenkinsjob2 pipeline:</p>
  
  <pre><code>stage('do something else') {
    when { expression { params.false == false } }
    steps{
      script {
        my_new_result = sh( returnStdout: true, script: 'python script.py')
        println my_new_result // echo 12345
  </code></pre>
  
  <p>I now want to use the result 12345 from the second job in env.var from the first pipeline.
  is this possible?
  i got for env.var = org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper@6c4ddc63 and not 12345</p>
  
  <p>KR
  Marvin</p>