
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
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
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.
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)
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
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"
}
}
}
}
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"
}
}
}
}
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 .