Skip to content

Instantly share code, notes, and snippets.

@ryantenney
Created December 5, 2012 16:08
Show Gist options
  • Save ryantenney/4216960 to your computer and use it in GitHub Desktop.
Save ryantenney/4216960 to your computer and use it in GitHub Desktop.
Jenkins.instance.items.each { job ->
println job.name;
job.builds.each { build ->
if (build.result == Result.ABORTED) {
println "\t${build.number} ${build.result}: deleting"
build.delete()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment