Jenkins: Scripted vs Declarative pipelines
Rajakumar Muthukumarasamy
Platform Engineering | DevOps | DevSecOps | GitOps | IAAC | MultiCloud | AIOps
#jenkins #pipelines
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?
TL:DR
Both variants use Groovy DSL
Scripted Pipeline:
Declarative Pipeline:
Which one to choose ?
Instead of giving an answer "It Totally Depends " , I personally would recommend to use Declarative because of following advantages:
Feel free to comment if you noticed any other ! Hope you liked the page. Cheers ! Happy New year