Complete Jenkins Pipeline Tutorial | Jenkinsfile explained
In this complete Jenkins Pipeline Tutorial, I explain everything you need to know about Jenkinsfile.
► Subscribe To Me On Youtube: https://bit.ly/2z5rvTV
This complete Jenkins Pipeline Tutorial will help you configure build pipeline for your own project using Jenkinsfile.
Gitlab Link: https://gitlab.com/nanuchi/techworld-js-docker-demo-app/-/blob/dev/Jenkinsfile
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
0:00 Intro
0:11 What is Jenkinsfile?
0:50 From Scripted to Declarative Pipeline Syntax
2:48 Basic Structure of Jenkinsfile
8:40 Post Build Actions in Jenkinsfile
10:15 Define Conditionals / When expression
12:45 Using Environmental Variables in Jenkinsfile
20:13 Using Tools attribute for making build tools available
22:30 Using Parameters for a Parameterized Build
27:29 Using external Groovy scripts
#devops #jenkins #docker #techworldwithnana #devopstools
▬▬▬▬▬▬ Want to learn more? 🚀 ▬▬▬▬▬▬
Complete Docker and Kubernetes tutorial ► https://bit.ly/2YGeRp9
What is Kubernetes? ► https://youtu.be/VnvRFRk_51k
Docker 🐳 vs Kubernetes ► https://youtu.be/9_s3h_GVzZc
Complete Jenkins Pipeline Tutorial ► https://youtu.be/7KCS70sCoK0
▬▬▬▬▬▬ Courses & Ebooks & Bootcamp 🚀 ▬▬▬▬▬▬
► Become a DevOps Engineer – full educational program 👉🏼 https://bit.ly/3gEwf4V
► Udemy courses – get biggest discounts here 👉🏼 http://bit.ly/2OgvzIO
► Kubernetes 101 – compact and easy-to-read ebook bundle 👉🏼 https://bit.ly/3mPIaiU
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
Join private Facebook group ► https://bit.ly/32UVSZP
DEV ► https://bit.ly/3h2fqiO
INSTAGRAM ► https://bit.ly/2F3LXYJ
TWITTER ► https://bit.ly/3i54PUB
LINKEDIN ► https://bit.ly/3hWOLVT
source
Leave us a comment Cancel reply
COMMON QUESTIONS
Categories
- Agile Coach
- ARTIFICIAL INTELLIGENCE
- Block chain
- Business Analyst BA
- DATA science
- Development
- Devops Automation
- Dotnet
- Education
- Free Job training and assistance
- Information
- Infrastructure automation
- Interview questions
- JAVA
- jobs
- Learn
- Machine learning
- Python Automation
- QA Automation
- RPA Automation
- SAP crm
- Scrum master Agile
- Skill
- UI Design
- Uncategorized
46 Comments
Amit Joshi
May 11, 2022 15:18 pmHow to create Pipeline to deploy to DEV, QA, iAT and prod. DEV should be continuous and QA should be based on QA approval. Same for iAT and Prod environment deploy.
Yogesh Mandlik
May 11, 2022 15:18 pmThanks Nana such a great and detail video.
Dimas Yudha Pratama
May 11, 2022 15:18 pmIt seems that you forgot to add single quote in both username & password variables 18:50 😀
Stephane Boghossian
May 11, 2022 15:18 pmLearn by doing 😉
You can use http://Brainboard.co to learn Jenkins!
We also have a Jenkins Templates available for the community to duplicate and scale.
Sateesh Karri
May 11, 2022 15:18 pmI like your explanation Nana and also clear explanation. Do vedios also about real time scenarios about " Production Support " if it is possible.
Thanks and Regards.
Sateesh.k
Pankaj Dahiya
May 11, 2022 15:18 pmyou missed showing automated pipelines!
abhishek gowlikar
May 11, 2022 15:18 pmNice explanation.
mohan babu
May 11, 2022 15:18 pmHi Nana, can you please share how to get variable from a external file like any properties file that got exported from a different job (which got generated from file export plugin).
Ramanamark Suriyamoorthy
May 11, 2022 15:18 pmCan anyone tell me how to configure jdk in scripted pipeline?
Mohamad Eghlima
May 11, 2022 15:18 pmHi, thanks for this, it was super helpful. I wanted to know if having a large complex Jenkinsfile for all the stages is good or having many Jenkinsfile in another folder in the project for each environment like dev, qa, prod?
i tried having different Jenkinsfile for each staging server but there were many 'permission denied' issues on our Jenkins jobs output which runs on a linux sever when it sh wants to go two levels up and execute ./gradlew in another folder.
Odda Kussa
May 11, 2022 15:18 pmNana my hero
EquityHouse
May 11, 2022 15:18 pmWhy dont you post a video on how to deploy tags using jenkins file
Evgeny
May 11, 2022 15:18 pmI almost got all you said in this video. I also understood everything you showed in this video. Thank you!
I Bims
May 11, 2022 15:18 pmI've been searching for a good Jenkins Pipeline introduction tutorial for a while now, and I'm happy to say I finally found a really great one! Thanks for it!
However, I'm still struggling to understand two things:
(1) After the build, I upload the build artifacts to an ftp server. That's currently in a post build step. What's the approach with Jenkins pipeline – leave it there or add it to the pipeline script?
(2) What would be the equivalent of configuring the a Maven release build in Jenkins Pipeline?
DEVOPS
May 11, 2022 15:18 pmThank you so much Nana!!
Markus
May 11, 2022 15:18 pmGreat tutorial!
Jason Goyer
May 11, 2022 15:18 pmthe external scripts, where are they located? in workspace or part of git repo?
Chetan Patel
May 11, 2022 15:18 pmThanks
Chetan Patel
May 11, 2022 15:18 pmHello, I'd like to say a massive thank you for creating this content. I've learnt more in this video then i've done over the last month with trying to work out how Jenkins and Groovy are used in real world relations. Its clear and concise. I know it takes a lot of time and energy to try and create these videos so keep going.
Stefan Naumoski
May 11, 2022 15:18 pmwho said programmers couldn't lay pipe
Yasmin Elderiny
May 11, 2022 15:18 pmYour explanation is very clear and to the point. I just started to understand Jenkins after watching your video.
Thank you 🌸
Rich Piana
May 11, 2022 15:18 pmI've been using Jenkins for years at an enterprise level, and this video is great conceptual breakdown.
Some fun things to do are spin up small kubernetes clusters using kind or micro-k8s on top of docker desktop, run full coverage unit tests in go, python, etc, and then tear everything down.
Cosmin Popescu
May 11, 2022 15:18 pmI learned more jenkins from this video then I would from other 5-8 videos. Thanks a lot, your videos are very clear, concise and transparent. It's a perfect rithm for anyone (beginner) watching this.
Keep up the good work, Nana !
Roboticist programmer
May 11, 2022 15:18 pmThanks Nana for the good tutorials you made
PapaKing
May 11, 2022 15:18 pmYou know the tutorial will be good when this is the channel
Khalid Akhter
May 11, 2022 15:18 pmNice presentation, great job
p k
May 11, 2022 15:18 pmhttps://www.youtube.com/watch?v=vqZDev9n3hA
omar akki
May 11, 2022 15:18 pmThanks sister
Lesetja Maribe
May 11, 2022 15:18 pmvery easy to understand.., thank you
Praveen’s shortz
May 11, 2022 15:18 pmHi Nana, I have one question here.
I have got 1 master and 3 slaves configured. I want to run some stages in master and remaining of them in slaves. How can I built it, if I'm writing them in the stages master is executing the slave jobs.
And add on to it, I want to utilize the master workspace how can I import it to slave .
Thanks in advance
Facts Of ÂLLÀH (Al-Šhaheed Services Pvt Ltd)
May 11, 2022 15:18 pmThank you madam
Manuel Molina
May 11, 2022 15:18 pmThanks!! It is very helpful!
Tarek Faham
May 11, 2022 15:18 pmReally great tutorial! Thank you!
Vazhikaattum Ganesh Anna
May 11, 2022 15:18 pmGreat Video 👍👍👍
Валерий
May 11, 2022 15:18 pmThere is a typo in 18:23: should be 'credentialsId' instead of 'credentials' in usernamePassword:
usernamePassword(credentialsId: 'server-credentials', usernameVariable: USER, passwordVariable: PWD)
Programmer
May 11, 2022 15:18 pmI would love to watch a complete jenkins course from you
Rubén Abraham Paredes Jiménez
May 11, 2022 15:18 pmNew sub here, thank you so much for all
Mahesh Patekar
May 11, 2022 15:18 pmAny tutorial on Jenkins and polarion integration?
Nithesh Kumar
May 11, 2022 15:18 pm2:11
ramesh kurumala
May 11, 2022 15:18 pmplease run the jenkinsfile.. job is failing please make one more
Mohamed Ibrahim Mustafa
May 11, 2022 15:18 pmGreat
rva chaitanya
May 11, 2022 15:18 pmcan anyone help me find a API based interaction with Jenkins, ex: get the nodes, build history, failed builds count, etc
George Li
May 11, 2022 15:18 pmamazing videos, thank you so much!
Ashu_&_Risi {Official}
May 11, 2022 15:18 pmYou teaching is just awasome nana. Appreciate your hard work for our growth.
Tom Knud
May 11, 2022 15:18 pmGood job, thanks!
Harris J
May 11, 2022 15:18 pmIf you would like to have her in complete gratification and have her asking for you to keep going with it, try go'ogling a few of the suggestions by Greyzar Drinbo, you are likely to go for at minimum 30 minutes more than you normally do.