continuous integration fundamentals: build automation - ofm canberra october 2014

13
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Build Automation Joel Nation Solution Architect Oracle Canberra

Upload: joelith

Post on 25-May-2015

71 views

Category:

Software


0 download

DESCRIPTION

Slides from the October Oracle Middleware Forum held in Canberra, Australia. This completes our continuous integration journey with the final component - build automation. For more information, check out our blog at http://ofmcanberra.wordpress.com

TRANSCRIPT

Page 1: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Build Automation

Joel NationSolution ArchitectOracle Canberra

Page 2: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 2

The Problem

Code

Targets

Build Configurations

Page 3: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 3

The Problem

Page 4: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 4

The Problem

Page 5: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 5

The Solution• Build Automation with Hudson

Trigger

Build

Deploy

Notify

Page 6: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 6

In Continuous Integration

Local WLS

Temp WLSCompileCreate WLSCreate DomainDeployTestUndeployRemove DomainUninstall

Version Control System

?

Page 7: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 7

In Continuous Integration

Local WLS

Temp WLSCompileCreate WLSCreate DomainDeployTestUndeployRemove DomainUninstall

Version Control System

Build Automation

Page 8: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 8

Hudson• Open-source build automation server• Emphasis on ease of installation and use– “yum install hudson”– Configure everything from the browser

• Extensibility– Hundreds of community developed plugins –Maven, Git, Archiva, Artifactory etc

• Used by thousands of customers

Page 9: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 9

Page 10: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 10

Sidenote: Hudson & Jenkins• Hudson was an open-source project sponsored by Sun• Jenkins was forked (2011) from Hudson by the

community after Oracle acquired Sun • Oracle moved Hudson to the Eclipse Foundation in 2012• Code base is the same, differences in plugins etc. • Jenkins – larger community, Hudson – Oracle preferred

Page 11: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 11

Common use cases• Monitor SCM for change (Git, Subversion etc)• Monitor changes in artifact repository (Archiva, Artifactory etc)• Deploy to test VM, run tests and report to users• Run Tests (Selenium, JUnit)• Run code quality tools (Sonar, Squale etc)• Trigger other builds (send artifacts downstream, integrate solutions etc)• Generate documentation• Can be used to build SOA Suite apps (in 12c)

Page 12: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 12

Hudson Demo

Page 13: Continuous Integration Fundamentals: Build Automation - OFM Canberra October 2014

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 13

More Resources• Our blog: ofmcanberra.wordpress.com• Redstack blog: redstack.wordpress.com• Official Oracle documentation:

docs.oracle.com/middleware/1212/core/MAVEN/config_hudson.htm#MAVEN8854