title: How to promote a specific build number from another job in Jenkins?
body: <p>I installed the <code>Promoted Build Plugin</code> from <code>Jenkins</code> and now I'm facing some troubles to promote a build from an existing job. Here is the scenario:</p>
  
  <ol>
  <li><p>There is an existing <code>Nightly Build</code> job that runs every night running all the tests and metrics needed;</p></li>
  <li><p>There is an existing <code>Deploy Build</code> that accepts a parameter ${BUILD_NUMBER} and deploys the build that has the corresponding ${BUILD_NUMBER} from the <code>Nightly Build</code></p>
  
  <ul>
  <li>Say the [Nightly Build] ran and successfully built the artifact #39</li>
  <li>Now I can just run the [Deploy Build] passing in #39 as a parameter
  
  <ul>
  <li>The artifacts from [Nightly Build] #39 are going to be deployed  </li>
  </ul></li>
  </ul></li>
  </ol>
  
  <p>So far so good. Now is the part where I want to add the <code>Build Promotions</code>...</p>
  
  <p><img src="https://i.stack.imgur.com/FwA59.png" alt="This is exactly what I need to achieve"></p>
  
  <p><strong>Is there a way to promote the <code>Nightly Build #39</code> (<em>notice that it was already built before</em>) from the <code>Deploy Build</code>? Or maybe even from somewhere else, quite frankly I`m kind of lost here :(</strong> </p>
  
  <p>I don`t see them with a clear Upstream/Downstream relationship, because they don't have a: <em>always runs this build and then the other during the execution - the [Deploy Build] is executed sometimes only and not always after the [Nightly Build]</em>. </p>