Jenkinsfile is a text file that contains the definition of a Jenkins Pipeline and is checked into source control.

It’s written using the Groovy DSL (Domain Specific Language) syntax.

Its purpose is to automate the different stages of the continuous delivery pipeline in an environment that’s easy to understand.

It allows code reviews, version control, and automated testing.

It also helps to track changes and set up notifications for each step of the pipeline.

Jenkinsfile is fairly easy to understand since the syntax is based on the popular Groovy language.

By having a single source of truth for your entire pipelines you can easily maintain and update them.