Jenkins Pipeline For Multiple Java Versions Using Matrix Feature

preview_player
Показать описание
Learn how to set up Jenkins Pipeline matrix with multiple Java versions ■ Jenkins Pipeline Tutorial ■ Jenkins Pipeline as Code ■ #jenkinspipeline

In this tutorial, I show you how to set up Jenkins Pipeline matrix with multiple Java versions using Docker containers.

💾 GET THE SOURCE CODE:

⏱️ TIMESTAMPS:
------------------------------------------------------------
00:00 | Intro
01:07 | Explaining the previous Dockerfile
02:03 | Creating Dockerfile for SDKMAN!
02:48 | Explaining how Jenkins runs the container
03:42 | Creating a jenkins user
04:30 | Installing SDKMAN
05:16 | Installing Java and Maven using SDKMAN
07:19 | Preparing PATH env variable
09:04 | Building the docker image
09:48 | Running container from the created image
10:19 | Creating Jenkinsfile
10:51 | Defining matrix with different Java versions
12:03 | Defining Build and Test stages
12:30 | Defining dockerfile agent
15:34 | Running the pipeline
19:13 | End screen

➡️ MENTIONED IN THE VIDEO:
------------------------------------------------------------

📺 WATCH NEXT:

☕️ BUY ME A COFFEE (thanks in advance! 😀)

📧 JOIN MY NEWSLETTER

🔥 MORE JENKINS PIPELINE TUTORIAL VIDEOS & RESOURCES:
------------------------------------------------------------

📷 CAMERA GEAR I USE:
------------------------------------------------------------

🛠️ TOOLS & SERVICES I USE TO:
------------------------------------------------------------

❤️ SUPPORT MY WORK
------------------------------------------------------------

👋 STAY IN TOUCH:
------------------------------------------------------------

✉️ CONTACT:

DISCLAIMER: Some of the links above are affiliate links. If you decide to click that link and subsequently make a purchase, I will get a small percentage from your purchase. Using the affiliate link does not affect the final price of the product. The commission I earn comes at no additional cost to you. Thank you for supporting my channel so I can continue to provide you with free content on a regular basis!

And remember - it's all about helping YOU to become a better software developer! Thanks!

#eprintstacktrace #szymonstepniak
Рекомендации по теме
Комментарии
Автор

⏱️ Timestamps:
00:00 | Intro
01:07 | Explaining the previous Dockerfile
02:03 | Creating Dockerfile for SDKMAN!
02:48 | Explaining how Jenkins runs the container
03:42 | Creating jenkins user
04:30 | Installing SDKMAN
05:16 | Installing Java and Maven using SDKMAN
07:19 | Preparing PATH env variable
09:04 | Building the docker image
09:48 | Running container from the created image
10:19 | Creating Jenkinsfile
10:51 | Defining matrix with different Java versions
12:03 | Defining Build and Test stages
12:30 | Defining dockerfile agent
15:34 | Running the pipeline
19:13 | End screen

szymonstepniak
Автор

Wow, Really these are the best Jenkins tutorial videos you can find on youtube. Really appreciated!!

GaurankGoyal
Автор

Its Really Awesome, your way of explanation is very good .. appreciating sharing your knowledge.
Thanks a lot.

arishnapalli
Автор

Let me add my thanks to the list! Great explanation.

toddcostella
Автор

Excellent video. Publishing the java artifact to jfrog or to nexus repository would have made this super excellent one.😀

kashyapkiran
Автор

Awesome video Szymon really loving your explanation keep up your thoughts

ramlakshmi
Автор

I just stumbled upon this Jenkins series and it's great. Hope you will soon return to making videos, keep up good work

ivmilicevic
Автор

These are very informative materials and you are excellent presenter/teacher. Are you on StackOverflow, could we post more detailed question there for you?

sammok
Автор

Really thanks alot. I am new to devops, i am searching for best videos, i don't know how to learn jenkins but after finding ur videos, i am very happy and i learned something new in easy way. Thanks alot please post more videos related to devops tool I am expecting more videos . Really awesome 👌👌👌👌 explanation. U have unique style. Every one can understand easily. if u don't mine can i ask u one question which code editor are u using? to edit jenkins file and docker file. plz tell us easy devops env setup.

lakshmibalanagu
Автор

thanks for the excelent technicall content, keep it going !

lorenzobragagnolo
Автор

Awesome videos and nice explanations. Thanks a lot.

Mohan-nfcu
Автор

Excellent szymon please make video on shared library to much complex pipelines to example or best practices

sanketjaiswal
Автор

Thanks a lot bringing this tutorial, could you please bring detailed tutorial on groovy scripting for jenkinsfile creation

PriyaJ
Автор

I really would like to see combination of Jenkins, Terraform, Ansible and some Build tool. Let's say i have an repo with Terraform resources to spin up the entire cluster, then i want to run Ansible to configure my VM's and install a software and when it's done i want to test, build and deploy the containers into my cluster. How would look like such repository and how these pipelines could be chained together. And ideally, if the Terraform or Ansible has no changes, then these pipelines are not triggered.

Oswee
Автор

Thanks, great video indeed! Just curious which Linux distro do you use?

Sairam-ymoh
Автор

Hi sir I have issue i don't not how to recive you
In my Jenkins master have two slaves one is ec2-linux and other one is ec2-windows .But the Java paths are different How do we provide different Java paths for different agents in Jenkins pipeline

deviabhishek
Автор

How could docker buildx (for building multi architecture) be used in this way?

KrzysztofSzortyka
Автор

Hi, how would you create an Automated CI/CD Pipeline in Jenkins with Java 14
or later using Selenium Webdriver in a Maven Project with TestNG?
Am Not interested on how to setup Jenkins with Java 8 or 11!

kimferko
Автор

How can we use different java versions in scripted pipeline?

benaam