Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
05-Jenkins Pipelines in continuous action by Ol...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
DevOps Gathering
March 12, 2019
Programming
220
0
Share
05-Jenkins Pipelines in continuous action by Oliver Milke
DevOps Gathering
March 12, 2019
More Decks by DevOps Gathering
See All by DevOps Gathering
Hacking Terraform by Constantin Weisser
devopsgatheringio
1
270
The Road to Reliability: Infrastructure Testing explained by Constantin Weisser
devopsgatheringio
1
300
Take MicroProfile to the Clouds with Quarkus by Dirk Weil
devopsgatheringio
0
220
Tracing - a Journey to Tactical Insights by Florian Kückelkorn
devopsgatheringio
0
280
Testable Kubernetes Operators? by Marcel Müller
devopsgatheringio
0
300
How Containerized Pipelines Can Boost Your CI/CD by Nico Meisenzahl
devopsgatheringio
0
200
Routing Your Microservices Architecture to Ease DevOps Enterprise Transformation by Manuel Zapf
devopsgatheringio
0
290
The First Decade of DevOps is Over by Konstanin Diener
devopsgatheringio
1
180
From Zero to Hero - Onboarding with GitOps by Mario Kleinsasser
devopsgatheringio
0
170
Other Decks in Programming
See All in Programming
TSKaigi2026-静的解析への投資がAI時代のコード品質を支える ── カスタムESLintルールの設計と運用
hayatokudou
6
1.2k
サークル参加から学ぶ、小さな事業の回し方
yuzneri
0
240
[BalkanRuby 2026] Drop your app/services!
palkan
3
710
iOS26時代の新規アプリ開発
yuukiw00w
0
210
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
2.9k
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
200
Skillは並べた。動かなかった。契約で繋いだ。— 65個のSkillから、自走する開発サイクルへ
junholee
0
770
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
1.3k
AIエージェントと協働するCLI開発 — BunとOpenClawで学んだこと
yoshikouki
1
220
~ 秘伝のタレ化した『神スプシ』と戦う ~ 関数型パラダイムで壊れない仕組みへ
h0r15h0
1
140
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
6
1.1k
次世代リンターで探る、tsgo 時代における型認識カスタムルールの現実解
ytakahashii
3
1.2k
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Exploring anti-patterns in Rails
aemeredith
3
370
Prompt Engineering for Job Search
mfonobong
0
320
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Google's AI Overviews - The New Search
badams
0
1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.1k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Writing Fast Ruby
sferik
630
63k
Transcript
// Jenkins Pipelines in Continuous Action
// • > 10 years of software developement • Software
Craftsman @cloudogu • JUG Ostfalen • Fitness / Freeletics Oliver Milke Software Craftsman https://twitter.com/OliverMilke About me https://twitter.com/cloudogu Cloudogu GmbH // 2
Intro Jenkins Pipelines - overview and basics Pipeline Show Case
//Where the journey goes Cloudogu GmbH // 3
Cloudogu GmbH // 4
Cloudogu GmbH // 5
Cloudogu GmbH // 6 1. Efficiency 2. Quality 3. Fun
☺ TOP 3 good reasons for automation
Cloudogu GmbH // 7 A Knightmare on Wall Street
Cloudogu GmbH // 8 Facts 3.3B transactions per day $21B
trade volumne per day 17% of the trades on NYSE and NASDAQ $365M in cash 31st July 2012
Cloudogu GmbH // 9 Epic Drama software development and operations
Dev + Ops What is the cost of bad culture?
Cloudogu GmbH // 10 What is the cost of bad
culture? infinite amount of sweat beads
Cloudogu GmbH // 11 What is the cost of bad
culture? 45 minutes of malfunction
Cloudogu GmbH // 12 What is the cost of bad
culture? $465M
Cloudogu GmbH // 13 What is the cost of bad
culture? bankruptcy https://dougseven.com/2014/04/17/knightmare-a-devops-cautionary-tale
// “Experience is simply the name we give our mistakes.“
Oscar Wilde Cloudogu GmbH // 14
Cloudogu GmbH Continuous… ✓ Integration ✓ Delivery ✓ Deployment ✓
Testing ✓ Inspection ✓ Monitoring ✓ Improvement // 16
Cloudogu GmbH // 17
Cloudogu GmbH // 18
Cloudogu GmbH // 19
Cloudogu GmbH // 20
Cloudogu GmbH // 21
Cloudogu GmbH Jenkins 2 Pipeline a.k.a. Pipeline as Code Jenkinsfile
// 22 https://plugins.jenkins.io/workflow-aggregator https://jenkins.io/doc/book/pipeline/
Cloudogu GmbH About the Talk accompanying article series // 23
Cloudogu GmbH About the Talk accompanying article series // 24
https://cloudogu.com/en/blog/continuous_delivery_1_basics https://cloudogu.com/en/blog/continuous_delivery_2 https://cloudogu.com/en/blog/continuous_delivery_part_3 https://cloudogu.com/en/blog/continuous_delivery_4_en
Basic Concepts Cloudogu GmbH // 25 ✓
// Steps & Stages • Steps of the build process
• scm checkout • mvn package • docker build • cubectl apply • sh 'magic‘ • Logic clustering to stages • Build • Test • Deploy Cloudogu GmbH // 26
Cloudogu GmbH // 27 http://localhost:8080/job/myPipeline/pipeline-syntax/ http://localhost:8080/job/myPipeline/pipeline-syntax/html http://localhost:8080/job/myPipeline/pipeline-syntax/globals * https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md Plugins
enrich the feature set*
Pro Tip #1 Replay Cloudogu GmbH // 28
Jenkins Architektur Cloudogu GmbH // 29
Pro Tip #2 Workspaces Cloudogu GmbH // 30
Long Build Jobs parallelization 1 Agent* n Agents ⚠️ 1
Workspace ⚠️ Setup synchronization exmaple Cloudogu GmbH // 31
Long Build Jobs nightly ⚠️ @midnight ⚠️ currentBuild.getBuildCauses() ⚠️ Feedback
Cloudogu GmbH // 32
Pro Tip #3 Cloudogu GmbH // 33 http://www.cronmaker.com/ CronMaker is
a utility which helps you to build cron expressions.
Similar Pipelines a.k.a Don‘t Repeat Yourself re-use load Shared Lib
⚠️ Pipeline Repository ⚠️ Groovy Script Cloudogu GmbH // 34
Shared Libs • tests! • declaration required • include required
Cloudogu GmbH // 35
Jenkins Architektur Cloudogu GmbH // 36
Build Agents Cloudogu GmbH // 37
Build Agents ⚠️ coupling of build and build agent Cloudogu
GmbH // 38
Build Agents Cloudogu GmbH // 39
Docker ⚠️ Cloudogu GmbH // 40
Build Agents Cloudogu GmbH // 41
// Credentials • Secrets do not belong in the Jenkinsfile
- never • Inbuilt security handling https://jenkins.io/doc/book/using/using-credentials/ Cloudogu GmbH // 42
Continuous Delivery …just another step ? Cloudogu GmbH // 43
Example Pipeline Cloudogu GmbH // 44
Cloudogu GmbH // 45
Cloudogu GmbH // 46 Cloudogu Training EcoSystem Consulting
Dogus Cloudogu GmbH // 47 Lint Setup Build Integration Tests
Provision Wait 4 Dependencies Verify Clean Checkout ~ 10 minutes
cloudogu.com Cloudogu GmbH // 48 Build Checkout Deploy ~ 5
minutes
k8s training slides Cloudogu GmbH // 49 Build Checkout Deploy
Nexus package Deploy Kubernetes ~ 3 minutes
Internal PDF manual Cloudogu GmbH // 50 Meta Data Checkout
Deploy Build ~ 1 minute
demo.cloudogu.net Cloudogu GmbH // 51 Decide Color Apply Demo Content
Destroy Old Instance Checkout Create New Instance Switch DNS Record ~ 22 minutes
private CES demo instances Cloudogu GmbH // 52 Apply or
Destroy Demo Content Checkout Verify ~ 3 minutes
// Wrap Up • Jenkins Pipelines is Classic Jenkins as
Code • Steps grouped in Stages • Code Generator for exploration • Don‘t Repeat Yourself • Test automation is part of the story • Parallise if needed • Use Docker build agents for step execution Cloudogu GmbH // 53
// Wrap Up • Delivery in a containerized world is
much easier • Automation is extremely valuable ☺ • Learning from mistakes is essential Cloudogu GmbH // 54
Thank You https://cloudogu.com | https://twitter.com/cloudogu See you at our booth!
Oliver Milke