-
Improvement
-
Resolution: Unresolved
-
Minor
-
Jenkins 2.73.2
BlueOcean 1.3.0
Currently I'm setting a buildDiscarder option in my declarative Jenkinsfile.
The problem is that I cannot setup a different strategy per branch.
Why do it need this? Well, I'd like to keep during more time the build and artifacts of the master and release/* branches while I keep a low number for any other branch.
I'm sure this will be useful for a lot of people.
I'm running into the same problem, and am surprised that this doesn't seem to be a common issue - how do other people handle loads of feature branch / pull request builds?
Edit:
I'm using the following code snippet as a workaround: