Jesse Glick TIL about flyweight! This is helpful. In our recent past we have had issues in the past with milestones. Scenario: We have 7 PRs ready using Bitbucket, and 7 PR builds are queued up using the Multibranch Pipeline. After the first one of those gets merged, the other 6 have to rebuild because Develop was changed. However, a few of the previous runs are still trying to execute so a queue forms that looks something like this (Assuming there are multiple builds surrounding these that look similarly): QUEUED JOBS: **part of Android-Build-Name >> PR-2715 #8 part of Android-Build-Name >> PR-2715 #7 RUNNING JOBS: part of Android-Build-Name >> PR-2715 #6 So, ideally we want to kill this running job #6 and the queued job #7 if a newer job #8 is queued up. Would something similar to line number 1 in the jenkinsfile for `jenkinsci/bom` solve this? |