Skip to content

kamilszymanski/jenkins-jobdsl-automation-starter

Repository files navigation

Jenkins Job DSL automation starter

Skeleton for Job DSL based Jenkins CI/CD automation projects.

Allows to quickly bootstrap Gradle project ready to create and test Job DSL scripts.

Samples

Starter contains code samples that showcase how to create and test DSL scripts as well as allow to test updates (e.g. Jenkins, Job DSL plugin).

Bootstrap steps

  • remove sample job
  • remove code from main sources
  • remove tests from com.twitter.kszdev.jenkins.jobdsl.custom package
  • remove tests from com.twitter.kszdev.jenkins.jobdsl.job package
  • remove test resources
  • remove or update README files
  • rename packages in test sources
  • update list of plugins available in tests
  • update DSL scripts' references in tests

Repository structure

|-- build.gradle            - project build script
|-- jenkins_plugins.gradle  - defines Jenkins plugins available in tests
|-- gdsl                    - contains GroovyDSL scripts that enable DSLs support in IntelliJ IDEA 
|-- jobs                    - contains Job DSL scripts
|-- src
|   |-- main                - contains custom code used in Job DSL scripts
|   |-- test                - contains Job DSL scripts' tests

Jenkins Pipeline support

Skeleton for Jenkins Pipeline based Jenkins CI/CD automation projects can be found in jenkins-pipeline-automation-starter.

References

API Viewer - yet prefer Job DSL API Reference available on Jenkins due to dynamic DSL support

DSL Playground application

Job-DSL wiki

Discussion group

About

Skeleton for Job DSL based Jenkins CI/CD automation projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages