Configuration as Code - Groovy Scripting Extension

ID: configuration-as-code-groovy

Extension for Jenkins Configuration-as-Code plugin that allows running Groovy scripts

Run Groovy scripts

Configuration-as-Code can run Groovy scripts.

Groovy scripts can be:

  • inline, with entry script
  • from url
  • from local file, using file

Sample configuration

  - script: >
      println("This is Groovy script!");

Implementation notes

  • It is recommended to use semicolons at the end of lines
  • There is no dry run implemented for Groovy scripts feature
ArchivesGet past versions
Version: 1.1
Requires Jenkins 2.60.3
Installs: 2,361
Tomasz Szandala
Help us improve this page!
To propose a change submit a pull request to the plugin page on GitHub.