You can use jenkins cli java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ delete-builds LARGE_JOB BUILD_NUMBER
for e.g. java -jar jenkins-cli.jar -s http://jenkins.example.net:8080/ delete-builds test-job 10-20 On Tuesday, April 19, 2016 at 1:23:23 PM UTC+3, David Aldrich wrote: > > Hi > > > > We have a large job that has no 'Discard old builds' setting. > > > > I want to set 'Discard old builds' to a sensible value and action it, to > delete some old builds, without actually running the job. Is that possible? > > > > Best regards > > > > David > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dfaa15ad-4f5c-403d-bc0b-34a172f1fab5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.