Child pages
  • Manually run log rotation on all jobs

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
//michaeldkfowler
import jenkins.model.*
Jenkins.instance.getAllItems(JobAbstractProject.class)
.findAll { it.logRotator }
    .each {
      it.logRotator.perform(it)
    }