Forked from jarek-przygodzki/jenkins-delete-failed-builds.groovy
Created
September 15, 2018 06:46
-
-
Save s4l3h1/d189170f4ea42bba9831d8580c8892be to your computer and use it in GitHub Desktop.
Delete all failed Jenkins builds
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
def jobName = '(...)' | |
Jenkins.instance.getItemByFullName(jobName).builds.findAll { it.result == Result.FAILURE}.each { it.delete() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment