title: Cancel queued builds and aborting executing builds using Groovy for Jenkins
body: <p>For Jenkins using a Groovy System Script, is there a way to easily search the build queue and list of executing builds for some criteria (specifically a parameter that matches some condition) and then kill/cancel them? </p>
  
  <p>I cannot seem to find any way to do this, but it seems like it should be possible.</p>