I'm just starting to get my toes wet with Jenkins and CI/CD and am trying to drag company culture along with it.
I've built a set of static analysis tools and corresponding configurations I want to run before a branch's Jenkinsfile is even considered. I want to take that outhave Jenkins run these tools across every branch regardless of what the control ofJenkinsfile on the git repo itself because I've been givenbranch says. I want to make sure that the taskstatic analysis is out of shifting company culture and improving code quality, but if left up to individual repos, there's a good chance the maintainerpurview of the repo will just remove analysis steps that are failing their build. How can I want to take that power away from them until culture has shifted enough to begin to release that control.
Is there a way to have Jenkins runbuild a set of steps that "parent"are run before the Jenkinsfile such that if there parent steps fail,on the Jenkinsfilebranch is never runconsidered?