Last active
February 19, 2016 20:22
-
-
Save nextrevision/70aa7be49d058df9877b to your computer and use it in GitHub Desktop.
Jenkins groovy script to delete builds x through y for a specific job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from http://superuser.com/a/589532 | |
Jenkins.instance.getItemByFullName('jobName').builds.findAll { it.number > 1 && it.number < 100 }.each { it.delete() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment