a.coursebox-container { }
Jenkins Level 1: Pipeline Essentials

Jenkins Level 1: Pipeline Essentials

Learn to create and run Declarative Pipelines

About this course

Learn to create and run Declarative Pipelines.  The class begins using the Blue Ocean Editor, which is the easiest and safest way for new users to define a build.  You then learn how to create and modify Pipelines without Blue Ocean. You’ll learn the structure of Declarative Pipeline, how to control the flow of execution, how to save artifacts of the build, and get practice using some common  steps and directives that give fit and finish to your Pipeline.  The course consists of lectures with follow-along labs plus lab exercises that allow 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 Declarative Pipeline using the Blue Ocean Editor and the Blue Ocean text editor.
  • Understand the structure of a Declarative Pipeline, including the role of the stage, step, agent, and post sections

  • Control the flow of execution in a Declarative Pipeline.
  • Preserve and use files created by the build and test activities.
  • Employ Pipeline capabilities that provide fit and finish to your Pipeline.

Audience

The course is appropriate for:

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

Prerequisites

  • Jenkins Fundamentals course or CJE/CCJE certification

Additionally, you should have some familiarity with ancillary technologies that are used in this course:

  • Docker
  • Git
  • Apache Maven, Gradle, Ant, or NPM

(You can complete the exercises even if you are not familiar with these tools, but learning them will help you implement your Pipelines in your own environment.)

Sections

01. Pipeline introduction

Learn about the need for Jenkins Pipeline, key pipeline use cases, structure, syntax, and execution control.  You also familiarize yourself with the lab environment you will use to complete the lab exercises in this class; self-study students also install their lab environment.

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

02. Skeletal Pipeline

Open the Blue Ocean editor, register with the Source Code Management (SCM) system, define stages and steps for the Pipeline, save and run the Pipeline  and understand the Blue Ocean visualization.  Use the Blue Ocean code editor to view the Jenkinsfile that defines this Pipeline.

Estimated time: 1 to 1-1/2 hours

03. Simple Pipeline

Create a simple Pipeline that implements a development and deployment lifecycle. This includes saving to an SCM branch, add stages that run tests, understand and archive artifacts, publish JUnit test reports, define and use environment variables and run steps in parallel.

Estimated time: 1 to 1-1/2 hours

04. Intermediate Pipeline

Learn to work on the Jenkinsfile  with the Classic Web UI and a text editor and use the Stage View visualization. Learn to use the documentation, Snippet Generator, and Declarative Directive Generator to add functionality to your Pipeline.  Understand agents, how to use the stash/unstash steps to transfer data from one stage to another, how to wait for interactive input, and add a "Deployment" stage.

Estimated time: 2-3 hours

05. Pipeline fit and finish

Learn about additional features that give you more control and functionality in your Pipeline. These include:

  • Creating a `post` section that defines steps to execute at the end of a Pipeline run or stage.
  • Working with defined environment variable.
  • How to set up notifications in the Pipeline.
  • Using credentials to access secured external resources without requiring that all users know the password.
  • Using the `options` directive to control the characteristics and behavior of the Pipeline.
  • An introduction to calling standard build tools from a Pipeline.

Estimated time: 2-3 hours

06. Advanced features

Includes three lessons:

  • Summary of best practices for Pipelines
  • Introduction to shared libraries and their benefits.  Another course teaches how to implement and use shared libraries.
  • Information about the `triggers` directive, which is rarely used in modern Pipelines because they are usually triggered by webhooks in the SCM repository

Estimated time:  10 minutes

 

Curriculum8 Hours

  • Pipeline Introduction
  • Pipeline introduction
  • Install lab environment
  • Labs Introduction
  • Create a Skeletal Pipeline
  • Getting started with Declarative Pipelines
  • Register with Source Code Management
  • Creating your first (skeletal) Pipeline
  • Lab: Create and edit an example Pipeline
  • Create a simple Pipeline
  • Using branches
  • Create Simple Pipeline
  • Artifacts and fingerprints
  • Add JUnit step
  • Set environment variables
  • Define parallel stages
  • Lab: Create and edit a simple pipeline with parallel stages
  • Intermediate Pipeline
  • Pipeline without Blue Ocean
  • Pipeline stage view
  • Diving into Pipeline syntax
  • More about the agent sections
  • Implement stash / unstash steps
  • Wait for interactive input
  • Deploying from Jenkins Pipeline
  • Lab: Multi-environment Pipeline
  • Pipeline Fit and Finish
  • Post section
  • Environment directive
  • Notifications
  • Add when directive
  • Use Git environment variables
  • Credentials
  • Options and configurations
  • Pipeline parameters
  • Build tools to create code for steps
  • Lab: Finished Pipeline
  • Advanced Features
  • Introducing shared libraries
  • Best practices
  • Triggers directive
  • Wrap Up
  • Your feedback is valuable!
  • Your Certificate of Completion

About this course

Learn to create and run Declarative Pipelines.  The class begins using the Blue Ocean Editor, which is the easiest and safest way for new users to define a build.  You then learn how to create and modify Pipelines without Blue Ocean. You’ll learn the structure of Declarative Pipeline, how to control the flow of execution, how to save artifacts of the build, and get practice using some common  steps and directives that give fit and finish to your Pipeline.  The course consists of lectures with follow-along labs plus lab exercises that allow 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 Declarative Pipeline using the Blue Ocean Editor and the Blue Ocean text editor.
  • Understand the structure of a Declarative Pipeline, including the role of the stage, step, agent, and post sections

  • Control the flow of execution in a Declarative Pipeline.
  • Preserve and use files created by the build and test activities.
  • Employ Pipeline capabilities that provide fit and finish to your Pipeline.

Audience

The course is appropriate for:

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

Prerequisites

  • Jenkins Fundamentals course or CJE/CCJE certification

Additionally, you should have some familiarity with ancillary technologies that are used in this course:

  • Docker
  • Git
  • Apache Maven, Gradle, Ant, or NPM

(You can complete the exercises even if you are not familiar with these tools, but learning them will help you implement your Pipelines in your own environment.)

Sections

01. Pipeline introduction

Learn about the need for Jenkins Pipeline, key pipeline use cases, structure, syntax, and execution control.  You also familiarize yourself with the lab environment you will use to complete the lab exercises in this class; self-study students also install their lab environment.

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

02. Skeletal Pipeline

Open the Blue Ocean editor, register with the Source Code Management (SCM) system, define stages and steps for the Pipeline, save and run the Pipeline  and understand the Blue Ocean visualization.  Use the Blue Ocean code editor to view the Jenkinsfile that defines this Pipeline.

Estimated time: 1 to 1-1/2 hours

03. Simple Pipeline

Create a simple Pipeline that implements a development and deployment lifecycle. This includes saving to an SCM branch, add stages that run tests, understand and archive artifacts, publish JUnit test reports, define and use environment variables and run steps in parallel.

Estimated time: 1 to 1-1/2 hours

04. Intermediate Pipeline

Learn to work on the Jenkinsfile  with the Classic Web UI and a text editor and use the Stage View visualization. Learn to use the documentation, Snippet Generator, and Declarative Directive Generator to add functionality to your Pipeline.  Understand agents, how to use the stash/unstash steps to transfer data from one stage to another, how to wait for interactive input, and add a "Deployment" stage.

Estimated time: 2-3 hours

05. Pipeline fit and finish

Learn about additional features that give you more control and functionality in your Pipeline. These include:

  • Creating a `post` section that defines steps to execute at the end of a Pipeline run or stage.
  • Working with defined environment variable.
  • How to set up notifications in the Pipeline.
  • Using credentials to access secured external resources without requiring that all users know the password.
  • Using the `options` directive to control the characteristics and behavior of the Pipeline.
  • An introduction to calling standard build tools from a Pipeline.

Estimated time: 2-3 hours

06. Advanced features

Includes three lessons:

  • Summary of best practices for Pipelines
  • Introduction to shared libraries and their benefits.  Another course teaches how to implement and use shared libraries.
  • Information about the `triggers` directive, which is rarely used in modern Pipelines because they are usually triggered by webhooks in the SCM repository

Estimated time:  10 minutes

 

Curriculum8 Hours

  • Pipeline Introduction
  • Pipeline introduction
  • Install lab environment
  • Labs Introduction
  • Create a Skeletal Pipeline
  • Getting started with Declarative Pipelines
  • Register with Source Code Management
  • Creating your first (skeletal) Pipeline
  • Lab: Create and edit an example Pipeline
  • Create a simple Pipeline
  • Using branches
  • Create Simple Pipeline
  • Artifacts and fingerprints
  • Add JUnit step
  • Set environment variables
  • Define parallel stages
  • Lab: Create and edit a simple pipeline with parallel stages
  • Intermediate Pipeline
  • Pipeline without Blue Ocean
  • Pipeline stage view
  • Diving into Pipeline syntax
  • More about the agent sections
  • Implement stash / unstash steps
  • Wait for interactive input
  • Deploying from Jenkins Pipeline
  • Lab: Multi-environment Pipeline
  • Pipeline Fit and Finish
  • Post section
  • Environment directive
  • Notifications
  • Add when directive
  • Use Git environment variables
  • Credentials
  • Options and configurations
  • Pipeline parameters
  • Build tools to create code for steps
  • Lab: Finished Pipeline
  • Advanced Features
  • Introducing shared libraries
  • Best practices
  • Triggers directive
  • Wrap Up
  • Your feedback is valuable!
  • Your Certificate of Completion