Top Banner
John Ferguson Smart - Wakaleo Consulting Continuous Deployment Automated build pipelines with Maven and Hudson And other cool Hudson tips! 1
30
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hudson: from build jobs to build pipelines

John Ferguson Smart - Wakaleo Consulting

Continuous DeploymentAutomated build pipelines with Maven and Hudson

And other cool Hudson ti

ps!

1

Page 2: Hudson: from build jobs to build pipelines

Agenda

CI Basics

Hudson

Notification Strategies

Quality metrics

Build promotions

Automated deployment

2

Page 3: Hudson: from build jobs to build pipelines

CI Fundamentals

Faster Feedback

BetterVisibility

AutomatedDelivery3

Page 4: Hudson: from build jobs to build pipelines

Meet Mr Hudson!

4

Page 5: Hudson: from build jobs to build pipelines

Why so awesome?ContinuousIntegration

5

Page 6: Hudson: from build jobs to build pipelines

Starring:The  Hudson  DashboardNested  View  Plugin

Dashboard - The 10,000 ft view

6

Page 7: Hudson: from build jobs to build pipelines

Spot a change

Know what’s changed

Kicking off your build job

Build

Build it fast

7

Page 8: Hudson: from build jobs to build pipelines

Keeping tabs on test results

What broke?

When did it break?

How long did it take?

What was tested?

8

Page 9: Hudson: from build jobs to build pipelines

Notification - be imaginative!

Starring:Hudson  Tray  Applica;on

Hudson  SoundsHudson  Speaks

...

Let the right people know

Let them know fast

9

Page 10: Hudson: from build jobs to build pipelines

Unit tests are for developers

Acceptance tests are for everyone else

Automated acceptance tests

Starring:HTML  Publisher  

Plugin

10

Page 11: Hudson: from build jobs to build pipelines

Share your binaries!

Enterprise Repository

CI build server

WAR1.0.1

WAR1.0.1

Set up an Enterprise Repository Manager.Set it up today.

11

Page 12: Hudson: from build jobs to build pipelines

Share your binaries!

SNAPSHOTS

RELEASES

12

Page 13: Hudson: from build jobs to build pipelines

Code Quality Metrics

Starring:Viola;ons  PluginCobertura  PluginSonar  Plugin

Quality code todayLess work tomorrow

13

Page 14: Hudson: from build jobs to build pipelines

Starring:Viola;ons  PluginCobertura  PluginSonar  Plugin

Code Quality Metrics

14

Page 15: Hudson: from build jobs to build pipelines

Watch your speedStarring:

Performance  Plugin

If you don’t spot performance issueswill your users do it for you?15

Page 16: Hudson: from build jobs to build pipelines

Build pipelines

Your codeinto production

TEST UATPROD

with a single click

Deploy

16

Page 18: Hudson: from build jobs to build pipelines

Build pipelinesunit-­‐tests

acceptance-­‐tests

code-­‐quality-­‐metrics

deployment-­‐to-­‐test

integra=on-­‐tests

deployment-­‐to-­‐uat

maven-­‐release

18

Page 19: Hudson: from build jobs to build pipelines

Automated deployment

Automated builds and deployments

WAR

App Server

1.0.2

1.0.2

maven

1.0.01.0.1

1.0.2List of available versions

SCM server1.0.1

Starring:Parameterized  Build  PluginDeploy  To  Container  PluginDescrip;on  SeKer  Plugin  

M2  Release  PluginSSH  Plugin

19

Page 20: Hudson: from build jobs to build pipelines

Continuous Deployment

Your codeinto production

TEST UATPROD

automatically

Deploy

20

Page 21: Hudson: from build jobs to build pipelines

Continuous Deployment

Deployment  automa=on

QA  and

 Dep

loym

ent  C

osts

Manual Deployment

Automated Deployment to TEST

$$

Automated Deployment to UAT

Automated Deployment to PROD

21

Page 22: Hudson: from build jobs to build pipelines

Continuous DeploymentQA  and

 Dep

loym

ent  C

osts

Manual Deployment

Automated Deployment to TEST

$$

Automated Deployment to UAT

Automated Deployment to PROD

Deployment  automa=on

Automated  Test  Quality

22

Page 23: Hudson: from build jobs to build pipelines

• Not so simple...

Continuous Deployment

23

Page 24: Hudson: from build jobs to build pipelines

Build Promotion

Starring:Promoted  Builds  

Plugin

Stepping stones to release 24

Page 25: Hudson: from build jobs to build pipelines

Extreme Communication

Starring:Radiator  View  Plugin

Make your builds glow

25

Page 26: Hudson: from build jobs to build pipelines

• Put your builds on the cloud

Distributed Builds

Build jobsin the cloud

Distributed builds

26

Page 27: Hudson: from build jobs to build pipelines

Distributed builds

27

Page 28: Hudson: from build jobs to build pipelines

Conclusion

“Do try this at home”

28

Page 30: Hudson: from build jobs to build pipelines

Keep an eye on your builds

John  Ferguson  SmartEmail:  [email protected]:  hKp://www.wakaleo.com

TwiKer:  wakaleo30