Skip to content

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

Notifications You must be signed in to change notification settings

jenkinsci/configuration-as-code-groovy-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration as Code Plugin - Groovy Scripting Extension

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

groovy:
  - 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