Last active
April 6, 2017 05:31
-
-
Save jaohaohsuan/1da208988bebab5e4a97abde26ca8db3 to your computer and use it in GitHub Desktop.
delete 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-master" | |
| def job = Jenkins.instance.getItem(jobName) | |
| job.getBuilds().each { it.delete() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment