Reset Jenkins Build Number¶
http://stackoverflow.com/questions/20901791/how-to-reset-build-number-in-jenkins
Go to the Jenkins Script Console and enter:
item = Jenkins.instance.getItemByFullName("your-job-name-here")
// remove all build history
item.builds.each() { build ->
build.delete()
}
item.updateNextBuildNumber(1)