Answers for "jenkins reset counter"

0

jenkins reset counter

item = Jenkins.instance.getItemByFullName("your-job-name-here")
//THIS WILL REMOVE ALL BUILD HISTORY
item.builds.each() { build ->
  build.delete()
}
item.updateNextBuildNumber(1)
Posted by: Guest on August-18-2020

Browse Popular Code Answers by Language