An introduction the Job DSL plugin for the Jenkins continuous integration server. Learn how to treat job and view configuration as code, how to store the configuration in SCM and how to apply code reuse and refactoring. Learn how to extend the Job DSL for your favorite plugins.
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Configuration As Code: The Job DSL Plugin
1. Jenkins User Conference Europe #jenkinsconf
Configuration As Code
The Job DSL Plugin
Daniel Spilker
CoreMedia
www.coremedia.com
June 25, 2014
#jenkinsconf
2. Jenkins User Conference Europe #jenkinsconf
Current Situation
• No single job that builds everything
• Each branch needs its own pipeline
• Every team has their own jobs
3. Jenkins User Conference Europe #jenkinsconf
Problem
• Lots of copy&paste
• Editing in HTML text areas
• Settings hidden behind Advanced button
• Working with the UI can be slow
4. Jenkins User Conference Europe #jenkinsconf
Configuration As Code
• Create new pipelines quickly
• Refactor jobs
• Trace changes
• Work with your favorite tool set
5. Jenkins User Conference Europe #jenkinsconf
There Is A Plugin For That
• Template Project Plugin
• Job Generator Plugin
• Literate Plugin
• JobConfigHistory Plugin
• …
• Job DSL Plugin
Open Icon Library / CC BY 3.0
24. Jenkins User Conference Europe #jenkinsconf
Further Information
• Documentation
https://github.com/jenkinsci/job-dsl-plugin/wiki
• Examples
https://github.com/sheehan/job-dsl-gradle-example
• Playground
http://job-dsl.herokuapp.com/
• Mailing List
https://groups.google.com/forum/?fromgroups#!forum/job-dsl-plugin
25. Jenkins User Conference Europe #jenkinsconf
Corporate
Community
Thank You To Our Sponsors
Platinum Gold
Silver
26. Jenkins User Conference Europe #jenkinsconf
Thank You
Daniel Spilker
daniel.spilker@coremedia.com
@daspilker
We‘re hiring
www.coremedia.com
@CoreMediaMinds