摘自:https://www.jianshu.com/p/e342b52d45e1
找到Jenkins的脚本命令行的输入位置,如下图
复制下边的脚本,改成自己的工程名称,点击执行。ok
item = Jenkins.instance.getItemByFullName("your-job-name-here") //THIS WILL REMOVE ALL BUILD HISTORY item.builds.each() { build -> build.delete() } item.updateNextBuildNumber(1)
标签:脚本,重置,item,build,序号,Jenkins From: https://www.cnblogs.com/LiuYanYGZ/p/17468496.html