Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Disable all jobs

Revision as of 21:12, 10 December 2012 by Scott.fisher.oracle.com (Talk | contribs) (New page: Useful if you don't have the Configuration Slicing Plugin This script disables all jobs in you Hudson server. <pre> import hudson.model.* // For each pr...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Useful if you don't have the Configuration Slicing Plugin

This script disables all jobs in you Hudson server.

import hudson.model.*

// For each project
for(item in Hudson.instance.items) {
  println("JOB : "+item.name)
  item.disabled=true
  item.save()
  println("\n=======\n")
}

Back to the top