title: Jenkins remove inprogress build on BitBucket if it's not built
body: <p>To save resources on our Jenkins server we abort intermediate builds if a newer commit is available.</p>
  
  <p>Now BitBucket stays on "In Progress" forever for this intermediate commit. If this intermediate commit is the head on another branch we can't merge.</p>
  
  <p>How can you remove the inprogress notification? I don't want to set the intermediate build to successful if it isn't built. I also don't want to set it to failure because that's also not true, I want to abort the build and remove the inprogress state. </p>
  
  <p>According to <a href="https://developer.atlassian.com/server/bitbucket/how-tos/updating-build-status-for-commits/" rel="nofollow noreferrer">https://developer.atlassian.com/server/bitbucket/how-tos/updating-build-status-for-commits/</a> there's only 3 states. But I want to remove the specified key completely, as if the build never happened.</p>