Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Useful before you make a copy or backup of your Jenkins installation.


This script wipes out the workspaces of all jobs on your Jenkins server

Code Block
import hudson.model.*
// For each project
for(item in Hudson.instance.items) {
  // check that job is not building
  if(!item.isBuilding()) {
    println("Wiping out workspace of job "
  else {
    println("Skipping job "", currently building")