#
Jenkins Pipelines - tutorials
Jenkins is one of the most powerful tools for continuous integration and continuous delivery (CI/CD). It seamlessly fits into the DevOps practice and helps developers with hassle-free CI/CD.
In Jenkins, a pipeline is a collection of events or jobs which are interlinked with one another in a sequence.
Jenkins pipelines can be written using two types of syntax:
Declarative
: more recent, designed to make writing and reading Pipeline code easierScripted
: written in Groovy, no limits as to what a scripted pipeline can do programmatically, but very hard to maintain
Info
Declarative pipelines break down stages into multiple steps, while in scripted pipelines there is no need for this.
The code of the pipeline could be written directly in Jenkins UI or could be written in Jenkinsfile
,
and is kept into the project’s source code in a Git repository. Jenkinsfile could be written in
declarative or scripted manner.