hudson: from build jobs to build pipelines

30
John Ferguson Smart - Wakaleo Consulting Continuous Deployment Automated build pipelines with Maven and Hudson And other cool Hudson tips! 1

Upload: wakaleo-consulting

Post on 14-Jul-2015

6.043 views

Category:

Technology


1 download

TRANSCRIPT

John Ferguson Smart - Wakaleo Consulting

Continuous DeploymentAutomated build pipelines with Maven and Hudson

And other cool Hudson ti

ps!

1

Agenda

CI Basics

Hudson

Notification Strategies

Quality metrics

Build promotions

Automated deployment

2

CI Fundamentals

Faster Feedback

BetterVisibility

AutomatedDelivery3

Meet Mr Hudson!

4

Why so awesome?ContinuousIntegration

5

Starring:The  Hudson  DashboardNested  View  Plugin

Dashboard - The 10,000 ft view

6

Spot a change

Know what’s changed

Kicking off your build job

Build

Build it fast

7

Keeping tabs on test results

What broke?

When did it break?

How long did it take?

What was tested?

8

Notification - be imaginative!

Starring:Hudson  Tray  Applica;on

Hudson  SoundsHudson  Speaks

...

Let the right people know

Let them know fast

9

Unit tests are for developers

Acceptance tests are for everyone else

Automated acceptance tests

Starring:HTML  Publisher  

Plugin

10

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

Share your binaries!

SNAPSHOTS

RELEASES

12

Code Quality Metrics

Starring:Viola;ons  PluginCobertura  PluginSonar  Plugin

Quality code todayLess work tomorrow

13

Starring:Viola;ons  PluginCobertura  PluginSonar  Plugin

Code Quality Metrics

14

Watch your speedStarring:

Performance  Plugin

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

Build pipelines

Your codeinto production

TEST UATPROD

with a single click

Deploy

16

Build pipelinesunit-­‐tests

acceptance-­‐tests

code-­‐quality-­‐metrics

deployment-­‐to-­‐test

integra=on-­‐tests

deployment-­‐to-­‐uat

maven-­‐release

18

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

Continuous Deployment

Your codeinto production

TEST UATPROD

automatically

Deploy

20

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

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

• Not so simple...

Continuous Deployment

23

Build Promotion

Starring:Promoted  Builds  

Plugin

Stepping stones to release 24

Extreme Communication

Starring:Radiator  View  Plugin

Make your builds glow

25

• Put your builds on the cloud

Distributed Builds

Build jobsin the cloud

Distributed builds

26

Distributed builds

27

Conclusion

“Do try this at home”

28

Keep an eye on your builds

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

TwiKer:  wakaleo30