Checkstyle Jenkins Integration

Checkstyle Jenkins Integration


Checkstyle Jenkins Integration

Introduction to Continuous Integration and Jenkins

Checkstyle role in Continous Integration

Concept and use of Jenkins with other build tools like Ant, Gradle, Maven with Checkstyle plugin

Introduction to Warning Next Generation plugin


Content

0 -> Hi let us understand how
7.8 -> checkstyle can be integrated as a part of Jenkins. We need to have a quick understanding on Jenkins. Jenkins is a open
15.6 -> source automation tool which can be used in every phase of any project that is build, integration as well as during deployment
25.433 -> let us have a quick overview
27.8 -> every project we will be having n number of source code and it will be
32.1 -> developed by n number of developers and we will be having a centralized
36.4 -> source control system like svn or Git where developers will be checking in their code. Already we have seen the plugins to integrate
45 -> with eclipse development tool or other development tools where developers can make sure the code
50.733 -> is being maintained as per the standard defined within the organisation
56.466 -> now I can have the additional check or control during the build phase as well
60.933 -> and Jenkins plays an important role in the continuous integration
65.4 -> where i can configure the Jenkins to read the source code from source control system and it can be triggered by multiple ways either on
74.333 -> every checking or periodically we can trigger this activity and Jenkins going to execute
80.3 -> the build tools like Ant, Gradle, Maven and it is going to do the build activity
86.3 -> so it's going to deliver the output in terms of the jar file
90.4 -> as well as we can make this tool deliver the checkstyle report as well
94.6 -> as we do in the normal build how we will be integrating the checkstyle
98.833 -> i will be integrating the checkstyle by providing the checkstyle xml and as a part of the build script whether it is Ant, Gradle or Maven i will
107.3 -> i will be providing the required configurations in terms of where the configuration
111.533 -> file and where the output should get generated what are all the modules to be used
115.766 -> all those integrations I will be doing it and when ever Jenkins getting triggered to
121.433 -> to do build activity it will generate the report as well and Jenkins provides a plugin for checkstyle and this is very recently
130.533 -> it is duplicated so it is recommended to use another plugin where its going to have
136.633 -> more advanced features and it supports checkstyle and other static analysis tool as well
142.733 -> warning next generation so this particular plugin will read the report whatever the
148.4 -> report being generated and it's going to give a beautiful visualized
154.066 -> UI. So this is what we are going to do as a part of the next few lecture where i am going to show you how the Jenkins can be installed
162 -> how it can be configured as well as we are going to execute a sample project using the Jenkins either using Ant or
169.933 -> Gradle script and visualize the report using the next generation plugin

Source: https://www.youtube.com/watch?v=0ILqivA7w5w