4.03 out of 5
4.03
75 reviews on Udemy

Jenkins Tutorial For Beginners (DevOps and Developers)

Learn How to Create And Schedule jobs in Jenkins, the standard in open-source CI (continuous integration) tools.
Instructor:
Yogesh Patel
4,565 students enrolled
English [Auto-generated]
Learn the fundamentals of Jenkins
Best practices of working with Jenkins
Jenkins Pipelines
Use Jenkins for Continuous Integration
Launch Builds on Slave Nodes
Schedule Builds
Create and Manage Builds
User Management in Jenkins

This course Jenkins Tutorial is For Beginners, DevOps and Software Developers. Learn how to use continuous integration with Jenkins. Take your DevOps skills.

Jenkins is an open source automation server written in Java. Jenkins  detects changes in Subversion/GIT…, performs tasks, repeatedly such as Build, Test, Deploy, Package, Integrate.. Jenkins   is A fork of the original Hudson project an is Under development since 2005.  Jenkins plugins extensibility makes Jenkins to adapt to many systems. Jenkins provides everything for a robust continuous integration system which helps a lot for team that practice Agile  Jenkins continuously providing access to the working copies of software which supports the Agile principle. 

The goal of this course is to provide you with a working knowledge of Jenkins CI (continuous integration) tool. We’ll start with the basics, starting from installing Scala on different Operating Systems like Window, Mac and Linux.

I believe the best way to learn is to understand how a tool works and what it does for you, look at examples, and then try it yourself. That’s how this course is built, with the goal to help you both learn and understand Jenkins .

Introduction

1
Introduction to Jenkins

Install Jenkins

1
How to install Java JDK 10 on Windows 10 ( with JAVA_HOME )

In this video I am going to show you How to install Java JDK 10 on Windows 10 ( with JAVA_HOME ). Java installer .msi file comes with JRE 10 and JDK 10. Java JDK 10 Installation for Microsoft Windows (64-bit). JDK stands for Java SE Development Kit. JRE stands for Java Run time Environment.

1. Download Java  Open your web browser

Type URL: http://www.oracle.com/technetwork/java/javase/downloads/index.html to go to Oracle download page 

Click on button “  Accept oracle license agreement

Find and click on the correct jdk  download link right for your operating system to download

Save the file to disk

2. Install Java

Double click to run the download file

Just follow the prompt in Installer window 

2
How to install Jenkins on Windows 10
3
How to install Jenkins on Ubuntu 18.04 (Debian Linux)

https://jenkins.io/doc/book/installing/


Install Java Commands 

------------------

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt install oracle-java8-installer

sudo apt install oracle-java8-set-default


Install Jenkins Commands

---------------------

wget -q -O - https://pkg.jenkins.io/debian-stable/... | sudo apt-key add -


sudo apt-add-repository "deb https://pkg.jenkins.io/debian-stable binary/"


sudo apt-get update

sudo apt-get install jenkins

4
How to install Jenkins Mac

Install Ubuntu With VirtualBox (optional)

1
Install Ubuntu 18.04 With VirtualBox
2
How Install VirtualBox Guest Additions on Ubuntu 18.04 Guest

Getting Started with Jenkins

1
Creating First Jenkins job

In this video I am going to show how to create your first Jenkins job and understand its options.

How to run a script as root in Jenkins On Linux?

$ sudo gedit /etc/sudoers

Use NOPASSWD line for all commands, I mean:

$ jenkins ALL=(ALL) NOPASSWD: ALL

Put the line after all other lines in the sudoers file.

2
How to Trigger a remote build + Job chaining In Jenkins

Jenkins Integration with GIT and GitHub

1
How to Install and Configure Git and GitHub on Ubuntu 18.04 (Linux)

Git  is a  distributed version control system.  This video shows How to Get Started with Git and Github and teaches The Basics of Git and GitHub.


Set Up Git:

git config --global user.name "Your Name"

git config --global user.email "youremail@domain.com"


other commands

git clone (url)

git add (file names)

git commit -m "(committed message)

git push -u origin master

git remote add origin master (url)


2
Git and GitHub Integration with Jenkins (SCM)

Manage Users And Plugins

1
How to create Users
2
Install Jenkins plugins
3
Using the Role-Based Authorization Strategy + Manage Roles
4
Configuring the System Environment

Jenkins Integration with Maven

1
How to install Maven on Ubuntu 18.04 LTS (Linux)

In this video I am going to show How to install Maven on Windows.

Maven is build tool primary for Java projects.

Install Java Commands 

------------------

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt install oracle-java8-installer

sudo apt install oracle-java8-set-default


Install Maven Commands 

------------------

cd /opt/

sudo wget http://www-eu.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz


sudo tar -xf apache-maven-3.5.3-bin.tar.gz

sudo mv apache-maven-3.5.3/ apache-maven/


sudo update-alternatives --install /usr/bin/mvn maven /opt/apache-maven/bin/mvn 1001


Configuring Apache Maven Environment

------------------


$ cd /etc/profile.d/

$ sudo gedit maven.sh

###################################################

# Apache Maven Environment Variables

# MAVEN_HOME for Maven 1 - M2_HOME for Maven 2

export JAVA_HOME=/usr/lib/jvm/java-8-oracle

export M2_HOME=/opt/apache-maven

export MAVEN_HOME=/opt/apache-maven

export PATH=${M2_HOME}/bin:${PATH}


sudo chmod +x maven.sh

sudo source maven.sh

2
How to setup Jenkins for a Maven project

Sending Email Notifications

1
How to send Email Notifications from Jenkins

Jenkins PipeLine

1
What is a Jenkins Pipeline + How to create Jenkins Pipeline

In this Video I am going to show What is Pipeline in Jenkins  (DevOps) and How to create Jenkins Pipeline with an Example. In addition We will also see How to use Pipeline as Code.Jenkins Pipeline is a Whole suite of plugins (10+) which are open-sourced and Shipped with Jenkins 2.x.x.  These Pipeline plugins were Formerly commercially available by CloudBees, called Workflow. We use a file called Jekinsfile to Define pipeline as code (again Groovy DSL) stage("Hello") { echo "*Hello*" } stage("World") { echo "*World*" }


Jenkins sample pipeline script

------------------------

pipeline {

    agent any

    stages {

        stage('Example clean') {

            steps {

                sh "rm -rf my-app"

                sh "git clone https://github.com/pknowledge/my-app.git"

                sh "mvn clean -f my-app"

            }

        }

        stage('Example install') {

            steps {

                sh "mvn install -f my-app"

            }

        }

        stage('Example test') {

            steps {

                sh "mvn test -f my-app"

            }

        }

        stage('Example package') {

            steps {

                sh "mvn package -f my-app"

            }

        }

    }

}


2
Pipeline script from SCM + Using Jenkinsfile in Github Project

In this Video I am going to show How to use Pipeline script from SCM and How to use Jenkinsfile in Github Project.Jenkins Pipeline is a Whole suite of plugins (10+) which are open-sourced and Shipped with Jenkins 2.x.x.  These Pipeline plugins were Formerly commercially available by CloudBees, called Workflow. We use a file called Jekinsfile to Define pipeline as code (again Groovy DSL) stage("Hello") { echo "*Hello*" } stage("World") { echo "*World*" }


Jenkins sample pipeline script in Jenkinsfile

------------------------

pipeline {

    agent any

    stages {

        stage('---clean---') {

            steps {

                sh "mvn clean"

            }

        }

        stage('--test--') {

            steps {

                sh "mvn test"

            }

        }

        stage('--package--') {

            steps {

                sh "mvn package"

            }

        }

    }

}


Creating Master Slave Nodes

1
How to Enable SSH in Ubuntu Linux (Install openssh-server)
2
Install Putty on Windows
3
Creating and Configuring Slaves/Nodes using SSH
4
Launch agent via Java Web Start (Windows Slave)

Jenkins with Parameters

1
How To Create Parameterized Jenkins Job
2
Multi Branch Pipeline Job using Jenkins

Jenkins CLI

1
How to use Jenkins CLI to Build Jobs

Install Useful tools

1
How to install Maven on Windows
2
How to install Maven on Mac
3
Install git On Windows
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 out of 5
75 Ratings

Detailed Rating

Stars 5
26
Stars 4
27
Stars 3
18
Stars 2
2
Stars 1
2
071f7fd193679548b424a0160dcc9df9
30-Day Money-Back Guarantee

Includes

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