a.coursebox-container { }
Jenkins Level 2: Pipeline Intermediate

Jenkins Level 2: Pipeline Intermediate

Creating and using shared libraries plus other facilities and tips for your Jenkins Pipeline

About this course

Built on top of Jenkins Level 1: Pipeline Essentials, this intermediate course delves into more advanced topics related to Jenkins Pipelines, including Scripted Pipeline, Shared Libraries, Tools, Docker Agents, chained jobs. It consists of lectures with follow-along labs, plus lab exercises that enable you to practice what you have learned.

Course Duration: 8 - 12 hours 

What you’ll learn

After completing this course, you will be able to:

  • Create, run, analyze and save a Scripted Pipeline.
  • Create and use shared libraries.
  • Know tips for using tools such as Maven, Gradle, and npm with Pipeline.
  • Incorporate Docker agents into Pipeline.
  • Find hints for converting from Freestyle chained jobs to Pipeline.

Audience

  • Beginner and intermediate Pipeline Developers
  • QA Engineers
  • Build and Release Engineers
  • Technical Project Managers
  • Architects

Prerequisites

  • Jenkins Level 1: Pipeline Essentials course or CJE/CCJE certification

You should have some familiarity with related technologies that are used in this course:

  • Docker
  • Git
  • Apache Maven, Gradle, Apache Ant or npm
  • Apache Groovy

Sections

01. Getting started

A brief recap of material covered in the Jenkins Pipelines Level 1: Essentials class and an introduction to the lab for this class.  Self-study students must install their lab environment.

Estimated time: 30 minutes (plus 30-60 minutes for self-study students to install their lab environment)

02. Prepare for shared libraries

A brief overview of Scripted Pipeline syntax and tools for working with Scripted Pipelines, a summary of topics discussed in the Jenkins Pipelines Level 1: Essentials class that are particularly relevant to the material in this class, how to create a Multibranch Pipeline using the classic UI, and a description of shared libraries and why they are useful.

Estimated time: 1 hour

03. Create shared libraries

How to set up a shared library and create a shared library custom step.

Estimated time: 1 hour

04. Call shared library functions

How ro call a shared library function and examples of defining custom steps for notification, using a LibraryResource with a shared library step.

Estimated time: 1 hour

05. Best practices

Recommended practices for using shared libraries.  Also information about Durability settings, restarting a Declarative Pipeline from a stage, and using sequential stages that provide multiple stages in parallel branches and ensure hat a set of stages use the same agent, environment, etc.

Estimated time: 1 hour

06. Tips and tricks

Examples of ways your Pipeline can interact with Docker, information about using the Groovy Sandbox, and general hints about Pipeline structure.

Estimated time: 1 hour

 

Curriculum8 Hours

  • Getting Started
  • Fundamentals recap
  • Install lab Environment (Self-study only)
  • Lab introduction
  • Lab: Blue Ocean refresher
  • Prepare for shared libraries
  • Working with Scripted Pipeline
  • Using a Jenkinsfile
  • Multibranch pipelines
  • Introduction to shared libraries
  • Create Shared Libraries
  • Implement shared libraries
  • Create an SCM repository
  • Configure the shared library
  • Lab: Configure a global pipeline library
  • Writing shared library custom steps
  • Lab: Create a simple custom step
  • Use Shared Libraries
  • Call the shared library custom step
  • Lab: Use a custom step
  • LibraryResource
  • Lab: Create and use a resource file
  • More shared library examples
  • Lab: Create a corporate pipeline
  • Best Practices
  • Best practices for shared libraries
  • Durability
  • Lab: Set Pipeline durability
  • Sequential stages
  • Lab: Sequential stages
  • Restart from a stage
  • Lab: Restart stage
  • Tips and tricks
  • Using Docker with Pipeline
  • Groovy Sandbox
  • General hints about Pipeline structure
  • Wrap Up
  • Your feedback is valuable!
  • Certificate

About this course

Built on top of Jenkins Level 1: Pipeline Essentials, this intermediate course delves into more advanced topics related to Jenkins Pipelines, including Scripted Pipeline, Shared Libraries, Tools, Docker Agents, chained jobs. It consists of lectures with follow-along labs, plus lab exercises that enable you to practice what you have learned.

Course Duration: 8 - 12 hours 

What you’ll learn

After completing this course, you will be able to:

  • Create, run, analyze and save a Scripted Pipeline.
  • Create and use shared libraries.
  • Know tips for using tools such as Maven, Gradle, and npm with Pipeline.
  • Incorporate Docker agents into Pipeline.
  • Find hints for converting from Freestyle chained jobs to Pipeline.

Audience

  • Beginner and intermediate Pipeline Developers
  • QA Engineers
  • Build and Release Engineers
  • Technical Project Managers
  • Architects

Prerequisites

  • Jenkins Level 1: Pipeline Essentials course or CJE/CCJE certification

You should have some familiarity with related technologies that are used in this course:

  • Docker
  • Git
  • Apache Maven, Gradle, Apache Ant or npm
  • Apache Groovy

Sections

01. Getting started

A brief recap of material covered in the Jenkins Pipelines Level 1: Essentials class and an introduction to the lab for this class.  Self-study students must install their lab environment.

Estimated time: 30 minutes (plus 30-60 minutes for self-study students to install their lab environment)

02. Prepare for shared libraries

A brief overview of Scripted Pipeline syntax and tools for working with Scripted Pipelines, a summary of topics discussed in the Jenkins Pipelines Level 1: Essentials class that are particularly relevant to the material in this class, how to create a Multibranch Pipeline using the classic UI, and a description of shared libraries and why they are useful.

Estimated time: 1 hour

03. Create shared libraries

How to set up a shared library and create a shared library custom step.

Estimated time: 1 hour

04. Call shared library functions

How ro call a shared library function and examples of defining custom steps for notification, using a LibraryResource with a shared library step.

Estimated time: 1 hour

05. Best practices

Recommended practices for using shared libraries.  Also information about Durability settings, restarting a Declarative Pipeline from a stage, and using sequential stages that provide multiple stages in parallel branches and ensure hat a set of stages use the same agent, environment, etc.

Estimated time: 1 hour

06. Tips and tricks

Examples of ways your Pipeline can interact with Docker, information about using the Groovy Sandbox, and general hints about Pipeline structure.

Estimated time: 1 hour

 

Curriculum8 Hours

  • Getting Started
  • Fundamentals recap
  • Install lab Environment (Self-study only)
  • Lab introduction
  • Lab: Blue Ocean refresher
  • Prepare for shared libraries
  • Working with Scripted Pipeline
  • Using a Jenkinsfile
  • Multibranch pipelines
  • Introduction to shared libraries
  • Create Shared Libraries
  • Implement shared libraries
  • Create an SCM repository
  • Configure the shared library
  • Lab: Configure a global pipeline library
  • Writing shared library custom steps
  • Lab: Create a simple custom step
  • Use Shared Libraries
  • Call the shared library custom step
  • Lab: Use a custom step
  • LibraryResource
  • Lab: Create and use a resource file
  • More shared library examples
  • Lab: Create a corporate pipeline
  • Best Practices
  • Best practices for shared libraries
  • Durability
  • Lab: Set Pipeline durability
  • Sequential stages
  • Lab: Sequential stages
  • Restart from a stage
  • Lab: Restart stage
  • Tips and tricks
  • Using Docker with Pipeline
  • Groovy Sandbox
  • General hints about Pipeline structure
  • Wrap Up
  • Your feedback is valuable!
  • Certificate