1. I have a multibranch pipeline job that takes 30min to run, has a lot of branches, and my company is still at the earlier stages of devops transformation, so with our current infrastructure we do not want to trigger a build every commit.
2. Our job pipeline uses parameters heavily, so I would also like to automatically build each branch on branch creation/detection.
How do I achieve the above 2 requirements?
Using git scm/plugin/branchsource, if I set (or clear) "Suppress Automatic SCM triggering", I get only one of the two requirements fulfilled: setting it suppresses ALL automatic triggering, not providing 2. Clearing it satisfies 2, automatically triggering a build on branch discovery, but also builds every commit which we don't want.
In my research I have found the
basic branch build strategies plugin, and while it provides some great sophisticated control over what branches build when, in terms of ensuring the job is built on branch creation, it seems to only provide added suppression.
Any suggestions would be welcome. Thanks.