Skip to content

Instantly share code, notes, and snippets.

Youngie 61 # perfect round in round 2!
Gus 53
Katie 53
Mick 53
Shaggy 53
James 47 # I didn't send the tips message for round 2 to James :( but he gets 16 points for it :)
Rob 47
Brett 45
Nick 45
Dayna 41
// change this variable to match the name of the job whose builds you want to delete
def jobName = "Your Job Name"
def job = Jenkins.instance.getItem(jobName)
job.getBuilds().each { it.delete() }
job.nextBuildNumber = 1
job.save()