title: Trigger Jenkins Build with "Poll SCM" AND "Build after other projects are built"
body: <p>I'd like to trigger the nightly cq build ONLY if last commit build was successful.</p>
  
  <p>Currently I have the cq build being triggered with a scm poll at midnight, but I would like to include the additional condition that another build (the last commit build) was successful. Because it makes no sense letting the slow cq build run just to inevitably fail.</p>
  
  <p>The build triggers section of a build have multiple ways of triggering a build including when another build is finished, but as far as I can tell these triggers happen if any one of them is selected I want to effectively AND the "Build after other projects are built" and "Poll SCM" conditions together.</p>
  
  <p>I've looked at <a href="https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin" rel="nofollow">https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin</a> 
  but that's about putting conditions on a build step, not conditionally triggering the build as a whole.
  and
  <a href="https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin" rel="nofollow">https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin</a>
  but that's about launching another build from another.</p>
  
  <p>Does anyone know how to do this?</p>
  
  <p>Regards,
  Phil.</p>