Simple play icon Course

Using Declarative Jenkins Pipelines

by Elton Stoneman

Learn the modern way to use Jenkins, with declarative pipelines stored in Jenkinsfiles which live alongside your project source code. Pipelines promote re-use and simplify your whole Jenkins experience, from managing agents to building branches.

What you'll learn

Declarative pipelines are the modern way to use Jenkins, replacing freestyle jobs which are stored as XML on the Jenkins server with Jenkinsfiles that are stored in source control with your project. In this course, Using Declarative Jenkins Pipelines, you'll learn how to use pipelines and how they make your Jenkins setup much easier to maintain. First, you'll see the basics of pipelines, how to structure jobs and run build steps. Then, you'll learn how pipelines promote re-use, with parameterized builds, Groovy code, and steps that can be accessed in shared libraries. Lastly, you'll understand how the features of pipelines support many different workflows - from using Docker containers as build agents, to running pipeline jobs across multiple source code branches. When you've finished with the course, you'll be ready to rewrite all your old freestyle jobs as pipelines, and make Jenkins a valuable tool rather than a maintenance burden.

About the author

Elton is a 10-time Microsoft MVP, author, trainer and speaker. He spent most of his career as a consultant working in Microsoft technologies, architecting and delivering complex solutions for industry leaders. He has delivered APIs on Azure serving millions of clients daily, Big Data solutions processing billions of events weekly, and cutting-edge solutions powered by containers. Elton's experience with .NET goes from .NET 1.0 running on Windows Server, right up to .NET Core running on Linux. Wh... more

Ready to upskill? Get started