Skip to content

Instantly share code, notes, and snippets.

@ctrabold
Created September 28, 2010 00:54
Show Gist options
  • Save ctrabold/600201 to your computer and use it in GitHub Desktop.
Save ctrabold/600201 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-x.*"}
cause = new hudson.model.Cause.RemoteCause("localhost", "bulk build")
jobs.each{ run -> run.scheduleBuild(cause)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment