Anatomy of a Jenkinsfile

Why should you use a Jenkinsfile? the biggest advantage of a Jenkinsfile is the ability to use version control to manage your build system. When you use freestyle jobs you can loose you configuration due to limit history depth. Descriptive vs Scripted Jenkinsfiles come in two flavours: Declarative pipelines always begin with the word pipeline…