I have a Jenkins setup where some additional stages (like sanitizers for example) are executed only on the master branch.
It's done this way since the rebuilds and reruns of the unit tests on these stages takes too long for us to execute it on all feature branches.
However there are some developers ignoring these failures. So ideally I would like to have these stages execute on all branches if they're failing on master. That way there would be a forcing function to keep the master branch green, without too much additional load on the servers, and too long delays when doing PRs.
Is something like this possible?