title: Query for last successful build number in Jenkins with change
body: <p>Example: </p>
  
  <pre><code>32 - fail
  31 - stable no change (triggered by parent)
  30 - stable with changes
  29 - fail 
  ...
  </code></pre>
  
  <p>I want a query to return <code>30</code></p>
  
  <hr>
  
  <p>So far what I got:</p>
  
  <p><strong>To query the last stable build number:</strong></p>
  
  <p><code>http://jenkins/job/project_name/lastStableBuild/buildNumber
  </code></p>
  
  <p>This returns <code>31</code>. Not exactly what I need.</p>
  
  <p><strong>To check if this build has changes, the only way I know is :</strong></p>
  
  <p><code>http://jenkins/job/project_name/31/api/json</code></p>
  
  <p>Then I need to go inside the huge JSON and check if any item in changeSet > items.</p>
  
  <hr>
  
  <p>Is there a easier way to query for the latest stable build with changes (30) ?</p>