title: Jenkins - publish version number for each build
body: <p>We are testing an embedded system which is a Linux image with several components in it. When a new image is released, it gets a version, e.g. Image 1.0.1 and in it each component in it has its own version. e.g. component1-2.0.3, component2-4.1.22 etc. Image generation is done externally (I don't know how).</p>
  
  <p>We are automating testing of our system, so now our testing looks like this:</p>
  
  <ul>
  <li>Every night, download the newest image</li>
  <li>For each component, execute tests on the image.
  This currently works ok.</li>
  </ul>
  
  <p>The end goal of Jenkins testing would be generation of reports for each image version. E.g.</p>
  
  <pre><code>Image 1.0.1
  Testing results
  Component1-2.0.3, passing 100, failing 20, etc.
  Component2-4.1.22, passing 34, failing 3, etc.
  </code></pre>
  
  <p>I don't know how to do this automatically, so please help.
  I need information about:</p>
  
  <ul>
  <li><p>When the build job starts, in the log I can see the version of the component and version of the image on which the test was executed. How to publish these informations, so next to the each build, on the summary page, I can see version of the component and version of the image on which the build was executed.</p></li>
  <li><p>How to create a final reports as given above from the informations I have in Jenkins?</p></li>
  </ul>
  
  <p>Any experiences, plugins and information are welcome.</p>