📜  jenkins 重置计数器 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:49.532000             🧑  作者: Mango

代码示例1
item = Jenkins.instance.getItemByFullName("your-job-name-here")
//THIS WILL REMOVE ALL BUILD HISTORY
item.builds.each() { build ->
  build.delete()
}
item.updateNextBuildNumber(1)