Jenkins Pipeline Tutorial: Declarative Pipeline vs Scripted Pipeline

preview_player
Показать описание

Many people ask this question: should I use Jenkins Declarative Pipeline syntax, or should I use the scripted one? And what is the difference between the two? In this video, I will show you what are the most significant differences between those two types of Jenkinsfile syntax. You need to know that the scripted pipeline was the first implementation of the "pipeline as a code" standard in the Jenkins ecosystem. The declarative pipeline represents newer attempt to this standard implementation introducing more opinionated syntax and adding several interesting features you can't find in the scripted pipeline syntax. And last but not least, both variants use Groovy DSL. Let's dive into both and learn what are the most important differences between the two.

⏱️ TIMESTAMPS:
------------------------------------------------------------
00:00 | Intro
00:45 | Jenkins Declarative Pipeline vs Scripted
01:43 | Ex.1: Jenkins pipeline code validation
04:14 | Ex.2: Restart pipeline from the stage
07:15 | Ex.3: Declarative pipeline options block
10:42 | Ex.4: Skip stage on a condition

☕️ 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

Music used in this video:
Artist: HOOKSOUNDS ORIGINALS
Title: MEDIEVAL MANDOLA
Рекомендации по теме
Комментарии
Автор

I started watching "Cory shaffer's python" tutorials when it had 406 views. Now, after 2 years, i became a python developer and Cory became a gem of YouTube python community. I can see another upcoming teacher in you. Really good video quality, grate explanation.
Suggestion : If you are appearing on screen try to be bit more pleasant. :)

ASHWINNS
Автор

Simple and accertive! I'm starting with Jenkins and haven't found an explanation that helped me like this! Thanks a lot!

leandafer
Автор

Really well explained about the differences, my long lasting confusion got cleared now. It helps me a lot.Thanks to Szymon :)

gajapathikrishni
Автор

Like the way you started. It's casual but elegant.

SumitKarmakar
Автор

Well done Syzmon, clear and concise - and it's a subject where you absolutely, positively need to see worked examples. Really wish the Jenkins project would link to this video from their declarative/scripted pipeline part in the online docs. And yeah, you sold me on declarative! ;)

bluebobx
Автор

High quality video and content. Clear as water!
Congrats

TaianNB
Автор

Best explanation so far, I already know a little thing about declarative and why was better but your video have much better points.

edipocdf
Автор

That was life changing! Thank you! Ps. świetnie mówisz po angielsku :)

spaceman
Автор

The way you explained is simply superb

lakshmipasala
Автор

Well, tbh I was hoping nothing after some time looking how to introduce myself into this Jenkinsfile world, but I found everything I didn't know I was looking for, this is one of my favorite sources to learn from… thank you very much @Szymon.

ChristopherCastaneiraMadrigal
Автор

Mate! u r videos are the most interesting and useful tutorials which I've ever watched from very start to very end without skipping even a second. with that background music, it's like biking explaining Jenkins to his clan :) awesome !!! very useful!!! Keep it up mate, u r explaining methods are superb

somehome
Автор

Nicely done, A start with .. "Hello Stranger ... " caught my attention and background music added to user experience. Concept was nicely explained, with good, short & concise examples. All these made me subscribe to your channel. Good Job (Y)

samcolin
Автор

Just the video I was looking for, really well explained!! Thanks a lot!!

erickmanuelbazansalinas
Автор

Thank you sir. Very descriptive and useful!

AlexFromDnepr
Автор

I am new to Jenkin but after watching your videos it looks very easy. Thanks Szymon. Channel subscribed. :)

akashdhorajiya
Автор

If you know Groovy language, then declarative pipeline makes it powerful to implement complex tasks.

krishna
Автор

Love the intro string instruments music!

MultiShotgun
Автор

Nice explanation... I was searching for this.

vijaykumary
Автор

well done syzmon! Great absolutely informative and more learning experience .keep it up bro @Great help

equbqlalam
Автор

Great succinct explanation and demonstration.

willnave