Automating Jenkins with Groovy
This course will teach you how to automate tasks and other useful applications using Jenkins’ premier automation language, Groovy.
What you'll learn
Once you’ve been working in Jenkins for a while, you can find yourself doing the same thing over and over again, which is never good for a developer. In this course, Automating Jenkins with Groovy, you’ll learn to make Groovy do the grunt work. First, you’ll explore the language itself with Groovy fundamentals. Next, you’ll discover how Groovy interfaces with Jenkins. Finally, you’ll learn how to automate your Jenkins work with a step-by-step playbook of Groovy scripts. When you’re finished with this course, you’ll have the skills and knowledge of Groovy needed to automate Jenkins and take your build ops to the next level.
Table of contents
- Introduction 1m
- The Groovy Console 1m
- Demo: The Groovy Console 2m
- Data Types 1m
- Demo: Data Types 4m
- Control Structures 1m
- Demo: Control Structures 2m
- Subroutines 1m
- Demo: Subroutines 2m
- Working with Classes and Objects 1m
- Demo: Working with Classes and Objects 2m
- Inheritance 2m
- Demo: Inheritance 3m
- Working with External Packages 1m
- Demo: Working with External Packages 2m
- Summary 1m
- How Jenkins and Groovy Work Together 2m
- Demo: Configuring the Groovy Plug-in 2m
- Understanding System and Standard Groovy Steps 2m
- Demo: A Groovy System Script 8m
- Script Types Wrap Up 1m
- Executing Groovy Scripts on Startup 1m
- Demo: Groovy Startup Scripts 2m
- Working with Exceptions in Groovy 5m
- Demo: Working with Exceptions in Groovy 2m
- Grabbing External Libraries 2m
- Summary 1m
- Introduction 1m
- Reusing Groovy Code in Jenkins 3m
- Demo: Global Shared Libraries 6m
- How Groovy Is Executed 2m
- Demo: Fixing Our Library with NonCPS 1m
- Getting Our Changes into Our ReleaseNotes 1m
- Demo: Upgrading Our ReleaseNotes 6m
- Shared Pipelines 1m
- Demo: Creating a Shared Pipeline 3m
- Wrap up: Working with Shared Libraries 1m
- Working with Plug-ins 1m
- Demo: Working with Plug-ins in Script 8m
- A Plug-in Script Pattern 1m
- Demo: Enforcing a Plug-in Whitelist 4m
- And Now, a Warning 1m