Gradle project to create jenkins job via jenkins job-dsl
Project was created according to structure in https://github.com/sheehan/job-dsl-gradle-example
- Groovy SDK
- Gradle
- job-dsl plugin on Jenkins
To run the script on jenkins:
- create a gradle build step with the following tasks
clean test libs config_setup - create a job-dsl build step with:
| Setting | Value |
|---|---|
| DSL scripts | jobs/*.groovy |
| Additional classpath | libs/*.jar |