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 - Git Tutorial
From the course: Git for Teams
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Continuous integration with Git1m 17s
-
(Locked)
Tools for continuous integration6m 27s
-
(Locked)
Install GitLab Runner3m 58s
-
(Locked)
Register GitLab Runner2m 51s
-
(Locked)
Building a CI pipeline5m 30s
-
(Locked)
Automating units tests for quality assurance4m 38s
-
(Locked)
Code quality with pipelines4m 29s
-
(Locked)
Building a DevOps foundation6m 8s
-
-
-