Continuous Integration with Maven, Jenkins, and Nexus

6 Ratings

Course Number: JEN-102
Duration: 3 days (19.5 hours)
Format: Live, hands-on

Jenkins Training Overview

Accelebrate's Continuous Integration with Maven, Jenkins, and Nexus training class teaches students the Apache Maven build process, the principles of continuous integration, and how to implement continuous integration with automated test execution using Jenkins, Maven, and the Sonatype Nexus OSS repository manager. Students use a local copy of Jenkins and to create and run Maven jobs, link to a version control system, run automated testing, and generate development reports. Attendees configure the system to log build reports and generated artifacts to a Nexus repository.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Download and install Maven
  • Build a project
  • Work with Maven's directory structure, plugins, repositories, and more
  • Understand the Project Object Model (POM)
  • Build a complete web application using Maven
  • Build and activate profiles
  • Use Maven from Eclipse via the m2eclipse plugin
  • 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
  • Configure Maven and Jenkins to deploy the generated artifacts to Nexus

Prerequisites

Attendees should have familiarity with Java development practices.

Outline

Expand All | Collapse All

Introduction To Continuous Integration And Jenkins-Ci
  • Agile Development
  • Agile Development (cont'd)
  • What is Continuous Integration
  • What is Continuous Integration (cont'd)
  • What is Continuous Integration (cont'd)
  • Typical Setup for Continuous Integration
  • Jenkins Continuous Integration
  • Jenkins Features
  • Running Jenkins
Introduction To Apache Maven
  • Build Tools for Java
  • Build Tools for Java (cont'd)
  • History of Build Tools
  • Traditional Scripting
  • 'make'
  • Problems with Make
  • Manual Build with JavaC
  • ANT
  • Pros and Cons of Ant
  • Apache Maven
  • Goals of Maven
  • What is Apache Maven?
  • What is Apache Maven (cont'd)
  • Why Use Apache Maven?
  • The Maven EcoSystem
  • Consistent Easy-to-Understand Project Layout
  • Convention Over Configuration
  • Maven is Different
  • Maven Projects have a Standardized Build
  • Effect of Convention Over Configuration
  • Importance of Plugins
  • A Key Point on Maven!
Installing And Running Apache Maven
  • Downloading Maven
  • Installing Maven
  • Run From Command Line
  • Running Inside an IDE
  • Settings.xml
  • Local Repository
Installing and Running Jenkins
  • Downloading and Installing Jenkins
  • Running Jenkins as a Stand-Alone Application
  • Running Jenkins on an Application Server
  • Installing Jenkins as a Windows Service
A Jenkins Job
  • Different types of Jenkins job
  • Configuring Source Code Management (SCM)
  • Working with Subversion
  • Build Triggers
  • Schedule Build Jobs
  • Polling the SCM
  • Maven Build Steps
Getting Started with Maven
  • Terminology and Basic Concepts
  • Artifacts
  • Lifecycle
  • Default Lifecycle
  • Plugins
  • Running Maven - the Story So Far
  • Running Maven from an IDE
  • Common Goals
  • pom.xml
  • Example
  • Example (cont'd)
  • Artifact Coordinates
  • Standard Layout for Sources
A Web Application in Maven
  • A More Complex Project
  • Putting it Together With Maven
  • Packaging the Target Artifact
  • The Source Tree
  • Dependencies
  • Transitive Dependencies
  • Dependency Scope
  • Working With Servers
  • Declaring and Configuring Plugins
  • Running the Plugin
  • Binding a Plugin Goal to the Lifecycle
  • Archetypes
Commonly Used Plugins
  • Maven Plugins
  • Declaring and Configuring Plugins
  • Running the Plugin
  • Binding a Plugin Goal to the Lifecycle
  • Maven Surefire Test Plugin
  • Failsafe Plugin
  • Site Plugin
  • JavaDoc Plugin
  • PMD Plugin
  • Code Coverage – Cobertura
  • Summary
Multi-Module Builds
  • Introduction
  • The Reactor
  • Reactor Sorting
  • Multi-Module Build by Example
Pom Projects
  • Project Object Model (POM)
  • The overall POM structure
  • Storing POM
Writing Plugins (Maven)
  • What is Maven Plugin
  • Example of Using a Plugin
  • Create a Custom Plugin
  • Create a Custom Plugin (cont.)
  • Plugin Management
Creating Archetypes
  • Introduction to Maven Archetypes
  • Introduction to Maven Archetypes (cont.)
  • Using Interactive Mode to generate Goal
  • Common Maven Archetypes
Repository Management
  • Introduction
  • Proxy Remote Repositories
  • Release Artifacts
  • Snapshot Artifacts
  • Reasons to Use a Repository Manager
  • Repository Coordinates
  • Addressing Resources in a Repository
Release Management
  • What is release Management?
  • Release Management with Nexus
  • Release Management with Maven
Jenkins Plugin
  • Introduction
  • Jenkins Plugins - SCM
  • Jenkins Plugins – Build and Test
  • Jenkins Plugins – Analyzers
  • Jenkins for Teams
  • Installing Jenkins Plugins
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
Distributed Builds with Jenkins
  • Distributed Builds - Overview
  • Distributed Builds – How?
  • Agent Machines
  • Configure Jenkins Master
  • Configure Projects
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
Best Practices For Jenkins
  • Secure Jenkins
  • Users
  • Backups
  • Reproducible Builds
  • Testing and Reports
  • Large Systems
  • Distributed Jenkins
  • Summary
Conclusion

Training Materials

All students receive comprehensive courseware.

Software Requirements

Attendees will not need to install any software on their computers for this class. The class will be conducted in a remote environment that Accelebrate will provide; students will only need a local computer with a web browser and a stable Internet connection. Any recent version of Microsoft Edge, Mozilla Firefox, or Google Chrome will work well.



Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan