4.37 out of 5
4.37
20 reviews on Udemy

Jenkins Pipeline tutorial for Beginners with 100+ examples

With Pipeline script, we'll see how we can work with JIRA, GIT, SVN, Shell, Conditions, When, POST and More
Instructor:
Tinku R
90 students enrolled
English [Auto-generated]
After this course, you can able to write Pipeline script from Beginner level to Advance level
From pipeline script, If particular user (Lead or Manager) triggers the job then only job has to execute
With Pipeline script how to integrate with GIT and SVN, how to commit, merge, Tag.
With Pipeline script, how to integrate with JIRA, Create tickets on build failures, close the ticket if build success
With pipeline how we can run jobs Parallel, Options section, Parameters, When, Bat, POST etc
With Pipeline how build will wait to get approve from specific user, Example My Sonar % is not upto the mark, so to proceed get approval from Lead
We'll see how we can run stages based on the commit messages, like if i pass specific keyword in the commit message then only the build has to start
With Pipeline script how to execute Bat and Shell commands

Jenkins Pipeline script or Pipeline as a code is a feature to write our build’s CI and CD process with the help of a code

In this course we’ll see the examples for following topics.

 

1.      JIRA

  • Create Ticket if build failed

  • Close the Ticket

  • Search

  • and more …..

2. How to execute bat commands and shell commands .

3. Execute Stage based on the commit message/committed files.

4. Pause the build and Wait for the approval from specific user.

5. Commit code to GIT if build success

6. How to work with SVN.

7. Parameters, Variables, Options, etc.

8. Pause job to read input from user.

9. Multiple examples on POST.

Introduction

1
Course Introduction
2
What is meant by Pipeline script and what are the advantages
3
Types of Pipeline scripts and Difference between them

Pipeline Basics

1
Introduction
2
Steps, Stage, Stages, Agent,
3
Stage Colors
4
Comments, Syntax
5
Demo : Hello World
6
Batch commands

Variables

1
Introduction
2
What are the uses of Variables
3
Demo : Predefined Variables
4
Demo : User defined Variables
5
Declaration Types
6
Demo : Scope of the Variables
7
Predefined VS User defined variables
8
Difference between Single and Double quotes
9
Concatenation operator

Parameters

1
Introduction
2
What are the uses of Parameters
3
String, Text, Boolean, Choice, Password, File
4
Demo and Params keyword
5
Demo : DRY Run

Options Section

1
Introduction
2
Retry
3
BuildDiscarder
4
DisableConcurrentBuilds
5
Timeout
6
Timestamps

Trigger builds

1
Introduction
2
Trigger Other Jobs
3
How to Trigger second job even first job fails
4
How to change build result
5
Trigger other job with parameters

Schedule Jobs

1
Introduction
2
Cron schedule
3
Poll SCM

Parallel

1
Introduction
2
Multiple steps sections under same stage
3
Parallel builds
4
Parallel Stages
5
FailFast

POST

1
Introduction
2
POST and order of Blocks
3
Demo : always, changed, fixed
4
Demo: regression, aborted, failure
5
Demo: success, unstable, cleanup
6
Post at stage level

Tools

1
Introduction
2
Tools
3
Demo : Run Java program with Different JDK versions

Conditional and Loop statements

1
Introduction
2
if and else
3
Demo : Build number : Even or Odd
4
Demo: For loop

Other Examples

1
Introduction
2
ansiColor
3
Change Build Number to Name
4
dir, cleanws
5
Demo: Write file_Jenkins syntax
6
Demo: Maven
7
Demo: archive artifacts and finger prints
8
Demo: Uses of Credentials Option
9
CheckOS_AndExecuteSteps
10
Demo: Trim

InPut Section

1
Introduction
2
Execute Stage only if Specific user triggers the build
3
Demo: User input
4
Demo: Read Input From Specific user

GIT

1
Pipeline Definition option
2
Demo : GIT checkout with the help of Pipeline syntax option
3
Demo: Commit Code
4
Demo : Create Tag On Every Deployment
5
Save Build Numbers which are used for Deployment in the file

SVN examples

1
SVN Configuration
2
Stages based on When condition

WHEN

1
Uses of WHEN
2
Demo: equals and not equals
3
Demo: Check previous build result and execute steps
4
Demo : Steps based on commit messages
5
Steps based on Committed files
6
Allof, Anyof
7
Execute stage if required string is matched in the file
8
Skip Stage always
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.4
4.4 out of 5
20 Ratings

Detailed Rating

Stars 5
9
Stars 4
8
Stars 3
3
Stars 2
0
Stars 1
0
12d2385b11bd6019f4a0f9abc7359515
30-Day Money-Back Guarantee

Includes

6 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion