How to Configure Groovy in Jenkins


Timecodes ⏱:

00:00 Introduction
00:18 Overview
01:47 Starting point
02:43 Install the Groovy plugin
04:32 Create a pipeline job that uses the withGroovy step
05:32 Create Groovy 3.0.8 installation using Install Automatically using Install from Groovy website
08:28 Create Groovy 2.5.14 installation using GROOVY_HOME
10:08 Create Groovy 2.4.21 installation using Install Automatically using Extract *.zip/*.tar.gz
12:38 Create JDK 11.0.11 installation and use it with Groovy 3.0.8
15:05 Conclusion

#jenkinstutorial #apachegroovy #jenkinspipeline

Information referenced in this video:

Jenkins LTS 2.289.1

Groovy plugin

CloudBees on Twitter:

Darin on Twitter:


    • blank
      danish khan
      May 13, 2022 03:20 am Reply

      tools { groovy '3.0.8'} < why this doesn't work to switch to diff versions of groovy ..but with jdk it works.. since groovy also a tool it should work

    • blank
      May 13, 2022 03:20 am Reply

      Thank you Darin! This is a great tutorial! What are the benefits (motivation) of using groovy in jenkins in comparison to dsl based on groovy (jenkins declarative pipeline) or python?

Leave us a comment