Last active
January 17, 2018 10:18
-
-
Save loivis/93ef550af01ad9dc74da24ce9811ee41 to your computer and use it in GitHub Desktop.
Revisions
-
loivis revised this gist
Jan 17, 2018 . 1 changed file with 12 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,16 @@ // delete build history in range and reset build number fullJobName = "full/job/name" start = 1 end = 10 nextBuildNumber = 1 item = Jenkins.instance.getItemByFullName(fullJobName) item.builds.each() { build -> if (build.number >= start && build.number <= end) { println("deleting build: " + build.number) build.delete() } } item.updateNextBuildNumber(nextBuildNumber) -
loivis revised this gist
Nov 10, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ // delete all build history and reset build number fullJobName = "full/job/name" item = Jenkins.instance.getItemByFullName(fullJobName) item.builds.each() { build -> build.delete() } -
loivis renamed this gist
Nov 10, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
loivis created this gist
Nov 10, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ // delete all build history and reset build number item = Jenkins.instance.getItemByFullName("full-job-name") item.builds.each() { build -> build.delete() } item.updateNextBuildNumber(1)