jenkins重置build序号

来源:https://www.jianshu.com/p/e342b52d45e1

执行命令:
item = Jenkins.instance.getItemByFullName("your-job-name-here") //THIS WILL REMOVE ALL BUILD HISTORY item.builds.each() { build -> build.delete() } item.updateNextBuildNumber(1)

 

posted @ 2019-05-21 03:09  DemonTech  阅读(1895)  评论(0编辑  收藏  举报