Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
deleted 319 characters in body
Source Link
seanr8
  • 111
  • 3

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?

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 out of the control of the git repo itself because I've been given the task of shifting company culture and improving code quality, but if left up to individual repos, there's a good chance the maintainer of the repo will just remove analysis steps that are failing their build. 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 run a set of steps that "parent" the Jenkinsfile such that if there parent steps fail, the Jenkinsfile is never run?

I'm just starting to get my toes wet with Jenkins and CI/CD.

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 have Jenkins run these tools across every branch regardless of what the Jenkinsfile on the branch says. I want to make sure that the static analysis is out of the purview of the repo. How can I build a set of steps that are run before the Jenkinsfile on the branch is considered?

Source Link
seanr8
  • 111
  • 3

Jenkins Pipeline steps that run before Jenkinsfile

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 out of the control of the git repo itself because I've been given the task of shifting company culture and improving code quality, but if left up to individual repos, there's a good chance the maintainer of the repo will just remove analysis steps that are failing their build. 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 run a set of steps that "parent" the Jenkinsfile such that if there parent steps fail, the Jenkinsfile is never run?