CloudBees University: Jenkins Pipeline - Fundamentals

CloudBees University: Jenkins Pipeline - Fundamentals

This course is a prerequisite course for several courses. It concentrates on Declarative Pipeline with Blue Ocean and introduces advanced facilities that require use of Blue Ocean code editor.

About this course

Learn to create and run Declarative Pipelines with the Blue Ocean Editor, which is the easiest and safest way to define a build.  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 of the features 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 Objectives

After completing this training module, you should understand the following:

How 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


How to control the flow of execution in a Declarative Pipeline

How to preserve and use files created by the build and test activities

Understand Pipeline capabilities that provide fit and finish to your Pipeline

Audience

The course is applicable to:

Beginner and intermediate Developers

QA Engineers

Build and Release Engineers

Technical Project Managers

Architects

Prerequisites

Jenkins Fundamentals course or CJE/CCJE certification

Students should have some familiarity with ancillary technologies that are used in this course:

Docker

Git

Apache Maven, Gradle, Ant, or NPM

Apache Groovy

The class has been structured so you can do the exercises even if you are not familiar with these tools but learning them will help you implement your Pipelines when you go back to work.

Approach

This course teaches you how to create and run a Jenkins Declarative Pipeline using the Blue Ocean Editor. Students create a real- life Pipeline to build, test, and deploy a Pipeline. The class ends with a quick tour of Pipeline capabilities that provide fit and finish to your Pipeline.

A Pipeline defines all the tasks required to build, test, and deploy an application for Continuous Delivery. It is defined in a Jenkinsfile, which is a text file that is saved to the source code repository where the source code for the application is stored.

A Declarative Pipeline uses an "opinionated" format that protects you from many common pitfalls and does not require that you be an expert in Apache Groovy syntax to create a full-featured Pipeline.

The Blue Ocean Editor is a graphical editor that allows you to define tasks that your Pipeline should run without having to actually write the code. It also provides a text editor that you can use in conjunction with the graphical editor. Blue Ocean executes your code each time you save it and provides a visualization of the execution along with access to detailed logs you can use to debug the Pipeline. It then creates a Pull Request to the Source Code Manager you have configured.

Duration

This training will take approximately 8 - 12 hours to complete.

Course Modules

Description of Jenkins Pipelines Fundamentals course

This is a one-day class about creating Jenkins Declarative Pipelines with the Blue Ocean Editor and the Blue Ocean Text Editor.

The course uses two projects:

Demo/follow-along project: Instructor shows how to do things, students can follow along, using copy-paste to populate their version of the project to get a feel for the tools.

Lab project: Students are given a list of tasks and are expected to figure out how to implement a Pipeline that implements those tasks.

Curriculum8 Hours

  • Getting Started
  • Course Outline
  • Install Lab Environment
  • Course Overview
  • Course Overview
  • Jenkins Overview
  • CloudBees Introduction
  • Pipeline Introduction
  • Pipeline Introduction
  • About your Lab VM Environment
  • Labs Introduction
  • Create a Skeletal Pipeline
  • Create First Pipeline
  • Register with Source Code Management
  • Creating Your First Pipeline
  • Lab: Create and Edit an Example Pipeline
  • Create a Simple Pipeline
  • Save Pipeline to a Branch
  • Create Simple Pipeline
  • Artifacts and Fingerprints
  • JUnit
  • Set Environment Variables
  • Parallel Stages
  • Lab: Create and Edit a Simple Pipeline with Parallel Stages
  • Intermediate Pipeline
  • Scripted Pipeline
  • Pipeline Stage View
  • Set up New Branch
  • Agents
  • Stash / Unstash
  • Wait for Interactive Input
  • Deploying from Jenkins Pipeline
  • Lab: Multi Environment Pipeline
  • Pipeline Fit and Finish
  • Post Section
  • Environment Directive
  • Notifications
  • When Directive
  • Git Environment Variables
  • Credentials
  • Options and Configurations
  • Parameters
  • Build Tools to Create Code for Steps
  • Lab: Finished Pipeline
  • Advanced Features
  • Introducing Shared Libraries
  • Best Practices
  • Advanced Features
  • Triggers Directive
  • Certificate of Completion
  • Your Certificate of Completion

About this course

Learn to create and run Declarative Pipelines with the Blue Ocean Editor, which is the easiest and safest way to define a build.  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 of the features 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 Objectives

After completing this training module, you should understand the following:

How 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


How to control the flow of execution in a Declarative Pipeline

How to preserve and use files created by the build and test activities

Understand Pipeline capabilities that provide fit and finish to your Pipeline

Audience

The course is applicable to:

Beginner and intermediate Developers

QA Engineers

Build and Release Engineers

Technical Project Managers

Architects

Prerequisites

Jenkins Fundamentals course or CJE/CCJE certification

Students should have some familiarity with ancillary technologies that are used in this course:

Docker

Git

Apache Maven, Gradle, Ant, or NPM

Apache Groovy

The class has been structured so you can do the exercises even if you are not familiar with these tools but learning them will help you implement your Pipelines when you go back to work.

Approach

This course teaches you how to create and run a Jenkins Declarative Pipeline using the Blue Ocean Editor. Students create a real- life Pipeline to build, test, and deploy a Pipeline. The class ends with a quick tour of Pipeline capabilities that provide fit and finish to your Pipeline.

A Pipeline defines all the tasks required to build, test, and deploy an application for Continuous Delivery. It is defined in a Jenkinsfile, which is a text file that is saved to the source code repository where the source code for the application is stored.

A Declarative Pipeline uses an "opinionated" format that protects you from many common pitfalls and does not require that you be an expert in Apache Groovy syntax to create a full-featured Pipeline.

The Blue Ocean Editor is a graphical editor that allows you to define tasks that your Pipeline should run without having to actually write the code. It also provides a text editor that you can use in conjunction with the graphical editor. Blue Ocean executes your code each time you save it and provides a visualization of the execution along with access to detailed logs you can use to debug the Pipeline. It then creates a Pull Request to the Source Code Manager you have configured.

Duration

This training will take approximately 8 - 12 hours to complete.

Course Modules

Description of Jenkins Pipelines Fundamentals course

This is a one-day class about creating Jenkins Declarative Pipelines with the Blue Ocean Editor and the Blue Ocean Text Editor.

The course uses two projects:

Demo/follow-along project: Instructor shows how to do things, students can follow along, using copy-paste to populate their version of the project to get a feel for the tools.

Lab project: Students are given a list of tasks and are expected to figure out how to implement a Pipeline that implements those tasks.

Curriculum8 Hours

  • Getting Started
  • Course Outline
  • Install Lab Environment
  • Course Overview
  • Course Overview
  • Jenkins Overview
  • CloudBees Introduction
  • Pipeline Introduction
  • Pipeline Introduction
  • About your Lab VM Environment
  • Labs Introduction
  • Create a Skeletal Pipeline
  • Create First Pipeline
  • Register with Source Code Management
  • Creating Your First Pipeline
  • Lab: Create and Edit an Example Pipeline
  • Create a Simple Pipeline
  • Save Pipeline to a Branch
  • Create Simple Pipeline
  • Artifacts and Fingerprints
  • JUnit
  • Set Environment Variables
  • Parallel Stages
  • Lab: Create and Edit a Simple Pipeline with Parallel Stages
  • Intermediate Pipeline
  • Scripted Pipeline
  • Pipeline Stage View
  • Set up New Branch
  • Agents
  • Stash / Unstash
  • Wait for Interactive Input
  • Deploying from Jenkins Pipeline
  • Lab: Multi Environment Pipeline
  • Pipeline Fit and Finish
  • Post Section
  • Environment Directive
  • Notifications
  • When Directive
  • Git Environment Variables
  • Credentials
  • Options and Configurations
  • Parameters
  • Build Tools to Create Code for Steps
  • Lab: Finished Pipeline
  • Advanced Features
  • Introducing Shared Libraries
  • Best Practices
  • Advanced Features
  • Triggers Directive
  • Certificate of Completion
  • Your Certificate of Completion