Jenkins pipeline: return value of build step : <p>In this integration pipeline in Jenkins, I am triggering different builds in parallel using <a href="https://jenkins.io/doc/pipeline/steps/pipeline-build-step/" rel="noreferrer">the build step</a>, as follows:</p>

<pre><code>stage('trigger all builds')
{
  parallel
  {
    stage('componentA')
    {
      steps
      {
        script 
        {
          def myjob=build job: 'componentA', propagate: true, wait: true
        }
      }
    }
    stage('componentB')
    {
      steps 
      {
        script
        {
          def myjob=build job: 'componentB', propagate: true, wait: true
        }
      }
    }
  }
}
</code></pre>

<p>I would like to access the return value of the <code>build</code> step, so that I can know in my Groovy scripts what job name, number was triggered.</p>

<p>I have found in the examples that the object returned has getters like <code>getProjectName()</code> or <code>getNumber()</code> that I can use for this.</p>

<p>But how do I know the exact class of the returned object and the list of methods I can call on it? This seems to be missing from the <a href="https://jenkins.io/doc/pipeline/steps/pipeline-build-step/" rel="noreferrer">Pipeline documentation</a>. I am asking for this case in particular, but generally speaking, how can I know the class of the returned object and its documentation?</p>
