Jenkins for Developers

Live Online (VILT) & Classroom Corporate Training Course

Jenkins is a popular continuous integration tool written in Java that runs on top of servlet containers such as Apache Tomcat.
Jenkins Logo

How can we help you?

  • CloudLabs
    CloudLabs
  • Projects
    Projects
  • Assignments
    Assignments
  • 24x7 Support
    24x7 Support
  • Lifetime Access
    Lifetime Access
Box

Overview

This Continuous Integration with Jenkins training class teaches attendees the principles of continuous integration and how to implement continuous integration with automated test execution using Jenkins

Box

Objectives

At the end of Jenkins training course, participants will be able 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
Box

Prerequisites

Attendees should have familiarity with Java development practices.

Box

Course Outline

  • Foundation of Agile AppDev
  • XP Flow
  • Extreme Programming
  • Agile Development
  • What is Continuous Integration
  • 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

  • Downloading and Installing Jenkins
  • Running Jenkins as a Stand-Alone Application
  • Running Jenkins on an Application Server
  • The Jenkins Home Folder
  • Installing Jenkins as a Windows Service
  • Initial Configuration
  • Configuration Wizard
  • Configuring Tools
  • Configuring Tools – Best Practices
  • Logging in Jenkins
  • Custom Log Recorders
  • Summary

  • Introduction
  • Configuring Source Code Management(SCM)
  • Working with Subversion
  • Working with Git
  • Storing Credentials
  • Service Accounts
  • Build Triggers
  • Schedule Build Jobs
  • Polling the SCM
  • Polling vs Triggers
  • Maven Build Steps

  • 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

  • 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 support building a C++ Project with Jenkins
  • Executing PowerShell Scripts with Jenkins

  • Template Jobs
  • Template Jobs Plugin
  • Template Jobs Plugin – config.xml
  • Summary

  • Continuous Delivery
  • DevOps and Continuous Delivery
  • Continuous Delivery Challenges
  • Continuous Delivery with Jenkins
  • The Pipeline Plugin
  • Defining a Pipeline
  • A Pipeline Example
  • Parallel Execution
  • Creating a Pipeline
  • Invoking the Pipeline
  • Interacting with the Pipeline
  • Pipeline vs Traditional Jobs

  • 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

  • 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

  • Introduction
  • Jenkins Plugins – SCM
  • Jenkins Plugins – Build and Test
  • Jenkins Plugins – Analyzers
  • Jenkins for Teams
  • Installing Jenkins Plugins

  • Distributed Builds – Overview
  • Distributed Builds – How?
  • Agent Machines
  • Configure Jenkins Master
  • Configure Projects

  • 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

  • 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

  • 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

  • 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

  • Secure Jenkins
  • Users
  • Backups
  • Reproducible Builds
  • Testing and Reports
  • Large Systems
  • Distributed Jenkins
Box

Testimonials