Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jenkinsci/configuration-as-code-groovy-plugin

Extension for Jenkins Configuration-as-Code plugin that allows running Groovy scripts
https://github.com/jenkinsci/configuration-as-code-groovy-plugin

configuration-as-code groovy-scripts jcasc jenkins jenkins-plugin

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

```yaml
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