Skip to content

Instantly share code, notes, and snippets.

@abayer
Created January 4, 2012 21:20
Show Gist options
  • Select an option

  • Save abayer/1562205 to your computer and use it in GitHub Desktop.

Select an option

Save abayer/1562205 to your computer and use it in GitHub Desktop.
import jenkins.model.*;
import hudson.model.Fingerprint.RangeSet;
def j = jenkins.model.Jenkins.instance.getItem("job-name");
def r = RangeSet.fromString("121-125", true);
j.getBuilds(r).each { it.delete() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment