From the course: Git for Teams

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Code quality with pipelines

Code quality with pipelines - Git Tutorial

From the course: Git for Teams

Start my 1-month free trial

Code quality with pipelines

- [Narrator] Static code analyzers are a great way to identify quality issues within our code. So in this lesson, we're going to integrate the FindBugs Maven plugin into our pipeline as a job. If you're not familiar with FindBugs, it's a code analyzer for Java that will identify quality issues within your code. Let's take a quick look at our pom.xml file. Here you'll see that I have included the FindBugs Maven plugin, so that will be part of our Maven build, and we can reference that plugin and run its goals as part of our pipeline in GitLab CI. So let's go ahead and put that in place by modifying our gitlab-ci.yml file. Within this file, we're going to go ahead and add another job that we'll call quality. Within that job we're going to add a script and that script will use Maven to kick off the FindBugs Plugins check goal. This is basically going to go check our code to see if there's any code defects, based upon the roles in FindBugs. The next thing we're going to do is establish a…

Contents