Skip to content

Instantly share code, notes, and snippets.

@ctrabold
Created September 28, 2010 00:56
Show Gist options
  • Save ctrabold/600203 to your computer and use it in GitHub Desktop.
Save ctrabold/600203 to your computer and use it in GitHub Desktop.
hudsonInstance = hudson.model.Hudson.instance
allItems = hudsonInstance.items
jobs = allItems.findAll{job -> job.isBuildable() && job.name =~ "extension-.*"}
jobs.each{ run -> run.delete()}
// This is not what I wanted... it DELETED the jobs... not the builds =:-o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment