Skip to content

Instantly share code, notes, and snippets.

@ctrabold
Created September 28, 2010 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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