How To Install Maven Plugin? | Jenkins Tutorial | Part III
Aug 16, 2023
How To Install Maven Plugin? | Jenkins Tutorial | Part III
Learn how to install and configure Maven on the Jenkins Server. Kick Start Testing-: https://accounts.lambdatest.com/regis … Try Continuous Testing with Jenkins on Cloud Selenium Grid with LambdaTest-: https://www.lambdatest.com/continuous … #jenkins #mavenplugins #automation #javascript In this part of Jenkins tutorial Series, Moss(@tech_with_moss), an experienced DevOps engineer, will take you to the next step after setting up Jenkins and explain How to install Maven Plugin in Jenkins Server? and How to build and configure the Jenkins Maven project? By the end of this video, you will learn 🎫 -: 🔸 What are Maven plugins? 🔸 How do you download Maven plugins? 🔸 How do you run a Maven command in Jenkins pipeline? 🔸 Where is Maven installed in Jenkins? Vɪᴅᴇᴏ Cʜᴀᴘᴛᴇʀꜱ 👀 ➤ 00:00 Introduction to Jenkins Tutorial ➤ 00:30 What is Maven Jenkins Plugin ➤ 01:06 Why to use the Maven Plugin on Jenkins Server ➤ 02:09 How to install the Maven plugin on Jenkins Server ➤ 04:20 How to build and configure the Jenkins Maven project ➤ 06:42 Conclusion Cᴏᴍᴘʟᴇᴛᴇ Playlist 🚩 ◾ What is Jenkins, and Why is it used? | Jenkins Tutorial | Part I https://bit.ly/3fzh1il ◾ How to Install and Configure Jenkins? | Jenkins Tutorial | Part IIhttps://bit.ly/2VZhNhl ◾ How To Install Maven Plugin | Jenkins Tutorial | Part IIIhttps://bit.ly/38CcOqh ◾ Jenkins Github Integration | Jenkins Tutorial | Part IVhttps://bit.ly/3skqHSJ ◾ Creating Jenkins Job For Maven Project | Jenkins Tutorial | Part V https://bit.ly/3g6mflN ◾ How To Add Jenkins Controller \u0026 Agent Node for Windows | Jenkins Tutorial | Part VI https://bit.ly/3yPowZZ ◾Add a Jenkins controller and Jenkins agent node in azure | Jenkins Tutorial | Part VIIhttps://bit.ly/37IOx14 ◾Jenkins Pipeline Tutorial | Jenkins Tutorial | Part VIIIhttps://bit.ly/3iUVP8B ◾Cross Browser Testing With LambdaTest Jenkins Plugin | Jenkins Tutorial | Part IX https://bit.ly/3jUH4ln Blogs -: What Is Jenkins Used For? -: https://bit.ly/3tJ2BkzHow To Set Jenkins Pipeline Environment Variables? -: https://bit.ly/2VFRM6K Comprehensive Guide To Jenkins Declarative Pipeline [With Examples] -:https://bit.ly/3jJDBpI How To Create \u0026 Run A Job In Jenkins Using Jenkins Freestyle Project? -:https://bit.ly/3COPFyG Also Read 🪐 LambdaTest Learning Hub: https://bit.ly/3vaaPT2 Jenkins Plugin for Integration With LambdaTest: https://bit.ly/2VgXuMF With Jenkins on LambdaTest, you can achieve the following ◾ Configure your LambdaTest credentials for your Jenkins jobs. ◾ Set up and tear down the LambdaTest Tunnel binary file to perform automated cross browser testing even on your locally hosted web apps ◾ Embed all the test results such as video logs, network logs, and screenshots of every step performed through LambdaTest with your Jenkins job results. What else? 🌟 + Test website on 2000+ mobile and desktop browser environments over LambdaTest cloud + Online scalable Selenium Grid to perform Manual testing as well as Automation testing + 100 minutes of free automated testing + Sessions with 10 Minutes of Each Free Live Interactive testing per month + 10 Responsive Testing (Test a page across 56 Device configurations with a single click) + 30 minutes of free testing on LT Browser + 10 Screenshot Testing Kick start your testing now: https://bit.ly/3eg5T8s 🆆🅷🆈 🅲🅷🅾🅾🆂🅴 🆄🆂? ◼ Free Sign-Up ◼ No Credit Card Needed ◼ 24/7 Chat Support ◼ Cancel Anytime Tune in to catch a new video and tutorials for beginners every week, and let us know what you think of the latest announcements in the comments below! 🚩 😃 If you’ve any questions: Contact us at support@lambdatest.com THINGS YOU NEED TO KNOW 🎬 - MOST RECENT VIDEOS: https://bit.ly/3kUUeAQ 🎓 - LEARN MORE AT LAMBDATEST: https://bit.ly/3fr6l4Z 🎥 - BUSINESS PROBLEM SOLUTIONS/CASE STUDIES: https://bit.ly/2TB7pvD 🚀 - WEBINARS: https://bit.ly/37i41co 🛠️ - PRODUCT UPDATES: https://bit.ly/3717NGO 💬 - LAMBDATEST GLOBALLY RECOGNIZED CERTIFICATIONS: https://bit.ly/3x4EtcY 📢 - FREE For Limited Time Only 🕑, Enroll Now! 👈 SOCIAL 📝 - BLOG: https://bit.ly/3yGVsUc 👥 - COMMUNITY: https://bit.ly/3Aiz5oO 🔴 - NEWSLETTER: https://bit.ly/3juhxzc 🖼️ - GITHUB: https://bit.ly/3jowfYs 🛠️ - YOUTUBE : https://bit.ly/3rH2Yfh 🌎 - LINKEDIN: https://bit.ly/3xA6F84 👥 - FACEBOOK: https://bit.ly/37mbQOa 🐦 - TWITTER: https://bit.ly/3Cn0g3A 📸 - PINTEREST: https://bit.ly/2VCXI05 Disclaimer: This video features materials protected by the Fair Use guidelines of Section 107 of the Copyright Act. All rights reserved to © 2021 LambdaTest. Any illegal reproduction of this content will result in immediate legal action #jenkinstutorial #mavenplugin #installmavenplugin #tutorial #lambdatesttutorial #configuremavenplugin #maventutorial #mavenplugininjenkins #jenkinserver
Content
6.56 -> hey what's up everybody my name is moss and
welcome back to our tutorial series on jenkins
11.52 -> by now you should have a good
understanding of what jenkins
14.08 -> is and you should also be familiar with some
of the key elements of the jenkins interface
18.32 -> in addition you should have a jenkins instance up
and running if so you're ready for the next topic
24.08 -> in this video we're going to install and configure
the maven plugin on our jenkins server so first
31.04 -> what is the maven jenkins plugin the maven plugin
is an open source jenkins plugin that supports
36.88 -> maven 2 and maven 3 projects and this plugin adds
an additional job type to jenkins called a maven
43.84 -> project if you recall from the previous
video i walked through the new item page
48.08 -> which listed all of the possible job types
you could create in jenkins and this plugin
53.76 -> adds an additional job type to that list
on the new item page called maven project
59.6 -> and this maven project job type provides an
advanced integration between maven and jenkins
66.24 -> but the question is why use the maven
plug-in when we could also invoke maven
70.48 -> inside of a freestyle project the maven plugin
greatly reduces the configuration required for
75.92 -> maven projects inside of jenkins and the plugin
enables post-build deployment of binary artifacts
82.32 -> that are produced during a maven build in addition
the plugin provides graphical test reports
87.52 -> directly in the jenkins ui it also supports
incremental builds so as not to waste resources
93.6 -> we can also build modules in parallel and
distribute it across executors and jenkins
99.04 -> nodes the plugin also provides an additional build
trigger in the maven project job type if it's
105.04 -> enabled jenkins will parse the palm files of the
current project if any of the dependencies listed
110.96 -> in the pom file are built on this jenkins instance
then jenkins will set up a build dependency
116.96 -> relationship so that any time the dependency
job is ran any downstream jobs that have that
124.4 -> dependency listed in their pond file will also
be triggered to run now that we have a better
129.92 -> understanding of what the maven plugin does let's
go ahead and install it on our jenkins instance
135.68 -> okay so the first thing that i want to
do is navigate to the manage jenkins page
140.96 -> and under system configuration i'm going to
navigate to the global tool configuration page
148.48 -> and i'm going to scroll down to maven and i'm
going to select add maven installation and we'll
157.2 -> give it a name we'll call it maven 3 and i have
the option to either install this automatically
165.84 -> or i can specify a pre-existing installation
of maven on this machine so in the maven home
172.72 -> field i would just specify the directory
where maven is installed on this machine
177.44 -> i don't have maven installed on this
machine so i'm just going to select
180.96 -> install automatically and the default installer
is installing from apache and then i have the
186.88 -> option to select which version i want to
install in this case the latest version is
191.28 -> already selected so i'm going to leave it as is
and since i selected install automatically during
197.84 -> the first build of a maven project on this jenkins
instance jenkins will download and install maven
204.88 -> so the first build of a maven project on this
jenkins instance might take a little bit longer
209.76 -> because it's downloading maven but all following
builds won't take as long because maven is already
215.52 -> installed on this jenkins instance so now that
i've specified install automatically i'm going to
221.76 -> select save and in the manage jenkins page i'm
going to navigate to the manage plugins page
230.48 -> and i'll select the available tab and
we're going to search for the maven plugin
239.12 -> okay and it's the first result here called
maven integration i'm going to select that
246.56 -> and then i'm going to select
install without restart
250.56 -> and now that it is downloaded and installed i'm
going to select restart jenkins when installation
257.92 -> is complete and no jobs are running and so
now jenkins is restarting and when it reloads
264.08 -> we should be able to see the maven project
job type shown in the new item page
274.32 -> okay so i'm going to go ahead and log back in
and i'm going to navigate back to the dashboard
289.68 -> and from the dashboard i'm
going to select a new item
295.28 -> and you'll notice below the
freestyle project we now have
300 -> a maven project job type in addition to the
other jobs that we can create in this jenkins
306.08 -> instance so i'll go ahead and create a
sample project and we'll just call it
311.36 -> test maven and i'm going to select the maven job
maven project job type and i'm going to select ok
322.32 -> and there's a couple of things i'll point out
in this configuration page the first is under
326.8 -> build triggers so the first option here
is the additional build trigger that i was
331.68 -> talking about in the powerpoint slide so we can
add a build trigger to build this maven project
339.28 -> whenever a snapshot dependency is built and so
this is the dependency that is listed in the pom
345.52 -> file for this particular maven project and the
other key element of this configuration page is
350.56 -> under the build section and here we specify where
the root pom is located and we can also specify
358.96 -> maven goals and options in this field so
for instance i could say clean compile
365.68 -> and test here we can also add pre and post steps
as well and in an upcoming video we'll use an
373.04 -> actual maven project with this jenkins job type
but before we do that we'll want to integrate this
379.92 -> jenkins instance with our github account so that
jenkins can clone down the maven project code base
386.64 -> locally to the jenkins workspace and build
it so what we'll target in the next video
391.36 -> is setting up the integration between this
jenkins instance and our github account we have
395.84 -> the maven plugin installed and ready to go on this
jenkins instance so i'll see you in the next video
401.68 -> if you'd like to learn more be sure to follow
our blog at lambdatest.com forward slash blog
407.04 -> as well as our lambda test community at
community.lambdatest.com you can also earn
412.8 -> resume worthy lambda test selenium certifications
at lambdatest.com forward slash certifications
429.52 -> you
Source: https://www.youtube.com/watch?v=hmqJpU_7gis