Remove builds of any Job

Remove builds of any Job with Groovy

8

Votes

Jenkins.instance.getItemByFullName('').builds.findAll { it.number > 10 && it.number < 25 }.each { it.delete() }

Vote Here

You must earn at least 1 vote on your snippets to be allowed to vote

Terms Of Use

Privacy Policy

Featured snippets are MIT license

Gears & Masters

Advertise

DevOpsnipp.com © 2020

medium.png