Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Managing Jenkins with Gradle
Search
Gary Hale
June 13, 2014
Programming
0
180
Managing Jenkins with Gradle
From Gradle Summit 2014
Gary Hale
June 13, 2014
Tweet
Share
More Decks by Gary Hale
See All by Gary Hale
Building a Continuous Delivery Pipeline with Gradle and Jenkins
ghale
0
97
Introduction to Glu
ghale
0
100
Introduction to Liquibase
ghale
0
930
Gradle - Build Automation Made Easy
ghale
0
70
Other Decks in Programming
See All in Programming
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
120
テストやOSS開発に役立つSetup PHP Action
matsuo_atsushi
0
160
【CA.ai #3】Google ADKを活用したAI Agent開発と運用知見
harappa80
0
310
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
2
220
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.4k
React Native New Architecture 移行実践報告
taminif
1
160
Cell-Based Architecture
larchanjo
0
130
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
470
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
240
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
8
2.8k
エディターってAIで操作できるんだぜ
kis9a
0
730
認証・認可の基本を学ぼう後編
kouyuume
0
240
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
A Tale of Four Properties
chriscoyier
162
23k
The Invisible Side of Design
smashingmag
302
51k
We Have a Design System, Now What?
morganepeng
54
7.9k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Speed Design
sergeychernyshev
33
1.4k
Navigating Team Friction
lara
191
16k
Statistics for Hackers
jakevdp
799
230k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
Side Projects
sachag
455
43k
Transcript
Managing Jenkins With Gradle Gary Hale Gradle Summit 2014
Who is this guy? 15+ years in DevOps Gradle Weenie
Compulsive Automator
What you should do Ask questions! Interrupt / Interact Complete
the Evaluation
What We’ll Talk About Evolution Jenkins Plugin Basics Demonstrations
Extensible Open Source Active Ecosystem Why is Jenkins Awesome? Jenkins
Open Source Distributed Model Distributed Model Extensible
Why is Jenkins Not Awesome? When we get beyond a
handful of Jobs, it becomes tedious to maintain
Couple Configuration with Project Track Changes Motivations Discipline Track Changes
Couple Configuration with Project Perform Validations/Comparison
Leverage Existing Skillset DRY Delegate Minimize Overhead Rebuild from Scratch
Delegate Motivations Maintenance Minimize Overhead DRY Rebuild from Scratch Leverage Existing Skillset Enforce Standards
Evolution of Jenkins Management Manual Solutions Manual Edits Copy From
Existing Script Solutions Script Console System Groovy Script Scriptler Job-like Solutions Jenkins Template Plugin Jenkins Job DSL Plugin External Solutions Jenkins Job Builder Gradle Jenkins Plugin Growth / Complexity
Manual Solutions “Nothing is as simple as we hope it
will be.” Jim Horning
Limited Parameters Groovy Jenkins Model Extremely Powerful Script Solutions Limited
Parameters Jenkins Model Extremely Powerful Groovy Better for One-offs
Many-to-one Template Jobs Job-like Solutions Template Jobs Job Template Plugin
Many-to-one Best When Combined
Storable No Validation Template Jobs Powerful DSL Job-like Solutions Powerful
DSL Job DSL Plugin Storable Template Jobs No Validation One instance
Openstack Clean Configuration Python/Yaml External Solutions Python/Yaml Jenkins Job Builder
Openstack Purely Declarative Clean Configuration
XML Manipulation Template Jobs Jenkins Job DSL Programmatic External Solutions
Programmatic Gradle Jenkins Plugin XML Manipulation Jenkins Job DSL Template Jobs Create/Delete/Validate
Does it make sense to manage jenkins with a build
automation tool? Question (Think About It…)
Gradle Jenkins Plugin Concepts Gradle (static model) Templates Views Jobs
Jenkins (live model) Views Jobs Updates
deleteJenkinsItems dumpJenkinsItems validateJenkinsItems updateJenkinsItems Gradle Jenkins Plugin updateJenkinsItems Tasks deleteJenkinsItems
validateJenkinsItems dumpJenkinsItems dumpRemoteJenkinsItems
Gradle Jenkins Plugin jenkins { servers { … } templates
{ … } jobs { … } views { … } } Conventions
Servers servers { server1 { url ‘http://jenkins.somewhere.com’ username ‘user1’ password
‘password1’ } } Secured
Servers servers { server1 { url ‘http://jenkins.somewhere.com’ secure false }
} Unsecured
Templates templates { template1 { xml file(‘template.xml’) } } XML
Templates templates { template1 { dsl file(‘template.dsl’) } } DSL
Jobs jobs { build_job1 { server servers.server1 definition { xml
file(‘build_job1.xml’) } } } XML
Jobs jobs { build_job1 { server servers.server1 dsl { using
‘template1’ } } } DSL
Views views { view1 { xml file(‘view1.xml’) } } XML
Views views { view1 { dsl { … } }
} DSL
Multiple DSL Form jenkins { defaultServer servers.server1 dsl fileTree(‘jenkins’).include(‘*.dsl’) dsl
{ … } }
Demonstrations
Does it make sense to manage jenkins with a build
automation tool? Question
Is Gradle a Build Automation Tool? The Right Question
Is a Swiss army knife a knife?
References https://github.com/ghale/gradle-jenkins-plugin https://github.com/ghale/summit2014