Friday 11 February 2022

Add JDK Maven and Git Plugins with Jenkins

Add JDK Maven and Git Plugins with Jenkins in local

Login Jenkins⇒Manage Jenkins⇒Manage Plugins⇒available(search maven)⇒Maven Integration(Install without restart)

http://localhost:8080/updateCenter/    #to view


#in terminal

sudo apt install maven

mvn -version

Apache Maven 3.6.3

Maven home: /usr/share/maven

Java version: 11.0.13, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64

Default locale: en_US, platform encoding: UTF-8

OS name: "linux", version: "5.13.0-28-generic", arch: "amd64", family: "unix"


Add JDK

Login Jenkins⇒Manage Jenkins⇒Global Tool Configuration⇒add JDK

#Name

local_java

#JAVA_HOME

/usr/lib/jvm/java-11-openjdk-amd64

#uncheck Install automatically

save


Add maven

Login Jenkins⇒Manage Jenkins⇒Global Tool Configuration⇒add maven

#Name

local_maven

#MAVEN_HOME

/usr/share/maven

#uncheck Install automatically

save


Add Git

git --version

git version 2.25.1

Login Jenkins⇒Manage Jenkins⇒Global Tool Configuration⇒add maven

#Name

localGit

#Path to Git executable

/bin/git

#uncheck Install automatically

save



No comments:

Post a Comment