Created
November 6, 2016 10:08
-
-
Save koi8/eb0b23822e8312d89c8ed1e6496a8967 to your computer and use it in GitHub Desktop.
This file contains 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
//go to https://jenkins/script and run | |
item = Jenkins.instance.getItemByFullName("job_name") | |
item.builds.each() { build -> | |
build.delete() | |
} | |
item.updateNextBuildNumber(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @koi8,
I use this all the time. great little tool.
My question sis: Have you ever tried adding it as a scriptler script?
I have been attempting this lately and for some reason I constantly get exceptions like below.
And it is the only scriptler script I have that is failing...
Any ideas?