If you have several hunderd runs, or if you have been testing and now it's working you want a clean set of runs, there are a couple of ways to reset this to 1.
You can create a new job from the existing job you want to reset, then drop the old one. Or you can run a little script. Go to http://{Your_Jenkins_Server:PORT}/script
Then in the window copy and paste the code below
item = Jenkins.instance.getItemByFullName("Your_Job_Nameh") //THIS WILL REMOVE ALL BUILD HISTORY item.builds.each() { build -> build.delete() } item.updateNextBuildNumber(1)
I am always interested in feedback so please feel free to add any comments, or you can mail me here. If you would like to submit a quick tip with full credit and links back to your site then also feel free to contact me.
