JENKINS DOWNLOAD AND INSTALLATIONS
Download the Jenkins from https://jenkins.io/download/
Extract the Jenkins zip file and run jeckin.exe file
Open commond prompt run following command
After doing the installation , check wheter installation is been done or no
By “localhost:8080”
After above view , the following screen you will get.
How to change Home Directory
First you need to check what is the default workspace for Jenkins.(
Manage Jenkins Configure System (Home Directory : C:\Program Files (x86)\Jenkins)
).
So I want to change it from default path to specified path(D:\SJ\Jenkins)
Copy all the files from C:\Program Files (x86)\Jenkins and paste it in D:\SJ\Jenkins and
create environment variable for Jenkins as
Stop the Jenkins in cmd (ctrl+c)
Start the Jenkins using:- java –jar jenkins.war
How to Install Maven Plugins in Jenkins
Manage Jenkins Manage Plugins click on Availbale tab search maven
select Maven Metadata Plugin for Jenkins CI server and Maven Integration Install
without Restart.
To install maven in the system. Download maven from
https://maven.apache.org/download.cgi. Select apache-maven-3.6.0-bin.tar.gz
Extract the apache maven in the C drive and set the environment variables, as
Check whether maven version in command prompt as
In Jenkins (Manage Jenkins Global Tool Configuration and add the jdk path and
maven path as)