Continuous Integration with Apache Maven and Jenkins
Web Age Solutions provides training on Apache Maven as well as Jenkins Continuous Integration. This video introduces the reasons behind Continuous Integration, introduces Apache Maven and demonstrates Continuous Integration with Jenkins-CI and Apache Maven.
Jenkins is an award-winning application that monitors executions of repeated jobs, such as building a software project or jobs run by cron. Among those things, current Jenkins focuses on the following two jobs:
- Building/testing software projects continuously. Jenkins provides an easy-to-use so-called continuous integration system, making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. The automated, continuous build increases development productivity.
- Monitoring executions of externally-run jobs, such as cron jobs and procmail jobs, even those that are run on a remote machine. For example, with cron, all you receive is regular e-mails that capture the output, and it is up to you to look at them diligently and notice when it broke. Jenkins keeps those outputs and makes it easy for you to notice when something is wrong.
This course will provide students with an understanding of the principles of continuous integration, and the knowledge of how to implement continuous integration with automated test execution using Jenkins. Students will use a local copy of Jenkins and to create and run jobs, link to a version control system, run automated testing and generate development reports.
Objectives
In this training, attendees will learn how to:
- Install and configure Jenkins in a servlet container
- Create Jenkins builds
- Configure and use Apache Ant and Apache Maven with Jenkins
- Use Jenkins to generate Java coding standards reports, code coverage reports, and change notices
Use Jenkins to automatically deploy software into a testing environment.
Prerequisites
Attendees should have familiarity Java development practices.
Duration
2 Days
Outline for Jenkins Training: Continuous Integration with Jenkins for Developers and DevOps Initiatives Training
Chapter 1. Introduction to Continuous Integration, Continuous Delivery and Jenkins-CI
- Foundation of Agile AppDev
- XP Flow
- Extreme Programming
- Agile Development
- What is Continuous Integration
- What is Continuous Integration (cont'd)
- Typical Setup for Continuous Integration
- Setup Notes for Continuous Integration
- CI with Artifact Management
- What is Continuous Delivery?
- Why Continuous Delivery?
- DevOps and Continuous Delivery
- Continuous Delivery Challenges
- Continuous Delivery vs Continuous Deployment
- Jenkins Continuous Integration
- Jenkins Features
- Running Jenkins
- Summary
Chapter 2. Installing and Running Jenkins
- Downloading and Installing Jenkins
- Running Jenkins as a Stand-Alone Application
- Running Jenkins as a Stand-Alone Application (cont'd)
- Running Jenkins on an Application Server
- The Jenkins Home Folder
- Installing Jenkins as a Windows Service
- Initial Configuration
- Configuration Wizard
- Configuration Wizard (cont'd)
- Configuring Tools
- Configuring Tools - Best Practices
- Logging in Jenkins
- Custom Log Recorders
- Summary
Chapter 3. Job Types in Jenkins
- Introduction
- Different types of Jenkins Items
- Different types of Jenkins Items (cont'd)
- Configuring Source Code Management(SCM)
- Working with Subversion
- Working with Subversion (cont'd)
- Working with Git
- Storing Credentials
- Service Accounts
- Storing Credentials (cont'd)
- Build Triggers
- Schedule Build Jobs
- Polling the SCM
- Polling vs Triggers
- Maven Build Steps
- Summary
Chapter 4. Advanced Jobs
- Parameterized Jobs
- Built-in Environment Variables
- Parameter Types
- Defining Parameters
- Using Parameters / Environment Variables
- Parameters in the config.xml File
- Launching a Build with Parameters
- Configuration Matrix
- Configuration Matrix – Example
- Defining Configuration Matrix
- Monitoring External Jobs
- Summary
Chapter 5. Non-Java Jenkins Jobs
- Jenkins Jobs
- Non-Java Jobs
- Building .NET Projects with Jenkins
- Installing MSTest Plugin in Jenkins
- Configuring the MSBuild Plugin
- Creating a Jenkins Job and Specify a Build Step
- Specifying a Step for Running Unit Tests
- Adding a Step for Deploying the .NET Project
- Building a Node.js Application with Jenkins
- Node.js Plugin
- Provides direct Pipeline supportBuilding a C++ Project with Jenkins
- Executing PowerShell Scripts with Jenkins
- Summary
Chapter 6. Continuous Delivery and the Jenkins Pipeline
- Continuous Delivery
- Continuous Delivery (cont'd)
- DevOps and Continuous Delivery
- Continuous Delivery Challenges
- Continuous Delivery with Jenkins
- The Pipeline Plugin
- The Pipeline Plugin (cont'd)
- Defining a Pipeline
- A Pipeline Example
- Pipeline Example (cont'd)
- Parallel Execution
- Creating a Pipeline
- Invoking the Pipeline
- Interacting with the Pipeline
- Pipeline vs Traditional Jobs
- Conclusion
Chapter 7. Groovy DSL
- What is Groovy
- Groovy in Jenkins
- Comments in Groovy
- Data Types
- Identifiers
- Variables
- def
- String Interpolation
- Operators
- Ranges
- Conditional Statements
- Loops
- Lists
- Maps
- Exception Handling
- Methods
- Closures
- this Keyword
- Classes
- Static Methods
- Inheritance
- Abstract Classes
- Interfaces
- Generics
- Jenkins Script Console
- Extending with Shared Libraries
- Directory Structure
- Sample Groovy Code
- Defining Shared Libraries
- Using Shared Libraries
- Same Shared Library Usage Code
- Defining Global Variables
- Summary
Chapter 8. Securing Jenkins
- Jenkins Security - Overview
- Jenkins Security
- Authentication
- Authorization
- Confidentiality
- Activating Security
- Configure Authentication
- Using Jenkins's Internal User Database
- Creating Users
- Authorization
- Matrix-Based Security
- Note – Create the Administrative User
- Project-based Matrix Authorization
- Project-Based Authentication
- Role Based Access Control
- Conclusion
Chapter 9. Jenkins Plugins
- Introduction
- Jenkins Plugins - SCM
- Jenkins Plugins – Build and Test
- Jenkins Plugins – Analyzers
- Jenkins for Teams
- Installing Jenkins Plugins
- Summary
Chapter 10. Distributed Builds with Jenkins
- Distributed Builds - Overview
- Distributed Builds – How?
- Agent Machines
- Configure Jenkins Master
- Configure Projects
- Conclusion
Chapter 11. Containerized Builds
- Introduction to Docker
- Docker – Benefits
- Containers vs. Virtual Machines
- Running Jenkins in a Docker Container
- Delete Jenkins Container and Image
- Configuring Command Prompt to Connect to Docker
- Creating Docker Container from Jenkins Job
- Test Custom Image Created by a Jenkins Job
- The Jenkins Docker Build Step Plugin
- Ephemeral Build Agents
- Summary
Chapter 12. The Jenkins API
- Remote Access API
- What you can do with the Jenkins Remote API
- Remote API and CSRF Protection – API Token
- Remote API and CSRF Protection – Crumb
- Configure Jobs to Support the Jenkins Remote API
- Making Remote API Calls
- Example - Advanced REST Client
- Example – cURL
- Jenkins CLI
- Configure Jenkins to use CLI
- Download and Use Jenkins CLI
- Summary
Chapter 13. Scripting
- Introduction to Scripting
- Benefits of Scripting
- The Jenkins Script Console
- Calling Scripts using cURL
- Sample Scripts
- Calling Groovy Scripts from a Jenkins Job
- Jenkins API
- Summary
Chapter 14. User Interface Options
- User Interface Options
- Customizing the UI with CSS
- The User Content Folder
- Using the User Content Folder and Simple Theme Plugin
- Writing a Jenkins Plugin
- Modify settings.xml
- Generate Boilerplate Code for Custom Jenkins Plugin
- Modify pom.xml
- Package and Deploy the Plugin
- The Blue Ocean Plugin
- Blue Ocean Plugin Features
- New modern user experience
- Advanced Pipeline visualizations with built-in failure diagnosis
- Branch and Pull Request awareness
- Personalized View
- Summary
Chapter 15. Best Practices for Jenkins
- Best Practices - Secure Jenkins
- Best Practices - Users
- Best Practices - Backups
- Best Practices - Reproducible Builds
- Best Practices - Testing and Reports
- Best Practices - Large Systems
- Best Practices - Distributed Jenkins
- Best Practices - Summary
Lab Exercises
Lab 1. Configure Tools in Jenkins
Lab 2. Create a Jenkins Job
Lab 3. Advanced Jobs
Lab 4. Node.js based Jenkins Job
Lab 5. Create a Pipeline
Lab 6. Advanced Pipeline with Groovy DSL
Lab 7. Configure Jenkins Security
Lab 8. Optional - Ephemeral Build Agents with Docker
Frequently Asked Questions:
What is Jenkins?
Jenkins is a popular continuous integration tool written in Java that runs on top of servlet containers such as Apache Tomcat. Some of the Software Configuration Management (SCM) tools it supports include CVS, Subversion, Git, Perforce, and Clearcase, among others. The environment is highly scriptable, with support for Apache Ant, Apache Maven, shell scripts, and Windows batch commands.
What are the Benefits to Using Jenkins?
Some of the benefits of Jenkins include:
- Building/testing software projects continuously. Jenkins provides an easy-to-use continuous integration system, making it easier for developers to integrate changes to their projects project, and for end users to obtain a fresh build. Development productivity is greatly increased by this automatic, continuous build process.
- Monitoring executions of externally-run jobs, whether locally or remotely, including cron and procmail jobs. For example, you might use cron to generate regular e-mails that capture output, and it is up to you to look at them diligently and notice when a break has occurred. Jenkins stores these email outputs and makes it easy for you to immediately identify issues.
Can I take Jenkins Training online?
Yes! Our Jenkins training is available as “onsite live training” or “remote live training”. Onsite live Jenkins training can be carried out locally on customer premises or in Web Age corporate training centers. Our live Jenkins online training is carried out by way of an interactive, remote desktop.
Why Choose Web Age Solutions for Jenkins Training?

Best price in the industry
You won’t find better value in the marketplace. If you do find a lower price, we will beat it.

Various delivery methods
Flexible delivery methods are available depending on your learning style.

Resources
Resources are included for a comprehensive learning experience.
We regularly offer Jenkins Training classes in these and other cities. Atlanta, Austin, Baltimore, Calgary, Chicago, Cleveland, Dallas, Denver, Detroit, Houston, Jacksonville, Miami, Montreal, New York City, Orlando, Ottawa, Philadelphia, Phoenix, Pittsburgh, Seattle, Toronto, Vancouver, Washington DC.