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  阅读(...)  评论(...编辑  收藏