This file contains 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 characters
import org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject | |
/** | |
* Maintains a build history limit across ALL branches in a pipeline, not just per branch. | |
* | |
* <p>This script could be tweaked to save last successful, discard artificats, exclude certain | |
* branches, include only a certain pipeline, etc. See <a | |
* href="https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/LogRotator.java">LogRotator.java</a> | |
* for more examples. | |
* |