SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Downloaden Sie, um offline zu lesen
Yale Jenkins
Build and Deploy
                                       E Camden Fisher
                               camden.fisher@yale.edu
                                         Technical Lead
                   Unix Infrastructure and Virtualization
Who Uses Jenkins @Yale?
Overview:
How does Jenkins make life better?
Without Jenkins                          With Jenkins
●   Building is slow, error prone        ●   "fire and forget", consistent!
●   Testing is onerous                   ●   Testing is automated!
●   Code coverage is onerous             ●   Code coverage is automated!
●   Bugs caught later                    ●   Bugs caught early and often!
●   Devs worry about environments        ●   Devs worry about code!
●   Lack of change control for           ●   Change control in the right
    deployments                              places for deployments!
●   Slow progress                        ●   Rapid progress! Agility!
●   Different artifact per environment   ●   Identical artifact per
●   Inconsistent configuration per           environment!
    environment                          ●   Identical configuration per
●   Deployments are "hard"                   environments!
●   Integration Hell                     ●   Deployments are easy! "Click!"
                                         ●   Integration Nirvana
Continuous Integration
Continuous Integration is a software development practice
     ○   Maintain a Single Source Repository
     ○   Automate the Build
     ○   Make Your Build Self-Testing
     ○   Everyone Commits To the Mainline Every Day
     ○   Every Commit Should Build the Mainline on an Integration Machine
     ○   Keep the Build Fast
     ○   Test in a Clone of the Production Environment
     ○   Make it Easy for Anyone to Get the Latest Executable
     ○   Everyone can see what's happening
     ○   Automate Deployment
Avoid "Integration Hell!!"
What is Jenkins?




Jenkins is an application and a framework that
   manages and monitors the execution of
               repeated tasks.
Why Jenkins?


●   Easy!
●   Extensible
●   Scalable
●   Flexible
●   Open Source
●   Supported by Cloudbees
History Lesson:
Application lifecycle is a progression
● Source Code Management
● Maven and Artifactory
● Building and Testing with Jenkins
● Container Configurable artifacts
● Managed deployments with Jenkins
Source Control Management

● Islands of SCM begat central SCM (subversion)
   ○ Single source repository!
   ○ Easy to get access.
   ○ Easy to onboard.
   ○   Easy to support.
   ○ Everyone wins!
Maven and Artifactory
●   Maven

    ○   Project Object Model (POM)

    ○   Simplifies dependency resolution ("oops I forgot that .jar!")

    ○   Makes the build process easy and uniform

●   Artifactory (Maven Repository)

    ○   Where do I put my built artifacts?

    ○   Makes it easy for everyone to get the latest build!
Builds without Jenkins
●   Builds take a long time

●   Automated Testing takes longer!

●   Code coverage reports take even longer!

●   Result: developers don't build, test or report on their code regularly enough
    because it's just too time consuming.
●   Build environments are not standardized
    ○   my laptop has a different o/s, jvm, ruby version, gems, libraries, etc
        than yours
●   Mistakes are caught later, harder to debug
Builds with Jenkins
●   SCM commits automatically kick off a build
    ○   Automate the build!
●   Testing and code coverage is automated and is run on every commit.
    ○   Makes the Build Self-Testing!
●   Broken builds immediately notify the team and the committer (Email, IRC,
    IM, Taskbar, etc)
●   Tests run in a Clone of the Production Environment!
●   Everyone can easily see what's happening!
●   Developers can get back to coding instead of building and testing.
●   Releases are quick and easy
Container Configurable Artifacts
●   Artifacts were built with configuration information embedded inside them.
    ○   ie. datasources, CAS service endpoints, etc
    ○   Artifacts are different per environment! What!?
    ○   "Oops, I forgot to update that parameter!"
●   Externalization of configuration parameters
    ○   deployable XML
    ○  Apps self configure with JNDI
●   Now we have Container Configurable artifacts
    ○   The SAME artifact migrates between environments
    ○  XML configuration data is all that differentiates environments
●   Vendor-lock-in-less PaaS plug
Deployments without Jenkins
●   Choice between loss of control or loss of agility
    ○    Either devs can edit deployables or they can't
    ○    Often devs can configure the container
●   If they can...
    ○    Code is deployed, edited and removed without Change Control
    ○    "I'll clean it up later!"
    ○    Dev environments quickly diverge from Production
    ○    Security is compromised
         ■    Elevated privileges on servers
         ■    Shell management on servers
●   If they can't...
    ○    Change requests are "slow", systems groups must do everything
Deployments with Jenkins
●   Consistency!

●   Jenkins writes configuration XML

●   Developers can deploy to DEV at will

●   Eliminate shells, and elevated privileges on servers

●   Container is managed by infrastructure with the O/S

●   Empowers developers to GTD

●   Puts gates at appropriate places

●   Changes to the Jenkins jobs require change control

●   Frees Systems folks to work on more interesting things

●   Workflow integration with Kintana
Non-Java languages
This all applies to Non-Java projects too!
Php
   ○ Continuous deployment to DEV for Drupal
   ○ Code coverage and unit testing available
Ruby
   ○ Automated unit testing
   ○ Automated code coverage
   ○ Automated deployment coming soon
.Net
   ○ Build, unit test, archive creation
The future...
● RBAC + folders
  ○ delegate responsibility to other systems groups
● More ruby
  ○ unit testing and code coverage
  ○ deployments
● Enterprise Service Bus
● Cloud deployments
Questions?



             E Camden Fisher
              Technical Lead
   Unix Infrastructure and Virtualization
         camden.fisher@yale.edu
                 @fishnix

Weitere ähnliche Inhalte

Was ist angesagt?

Continuous integration
Continuous integrationContinuous integration
Continuous integration
amscanne
 

Was ist angesagt? (20)

CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
 
Jenkins tutorial
Jenkins tutorialJenkins tutorial
Jenkins tutorial
 
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
What is Jenkins | Jenkins Tutorial for Beginners | EdurekaWhat is Jenkins | Jenkins Tutorial for Beginners | Edureka
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
 
Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkins
 
Jenkins Overview
Jenkins OverviewJenkins Overview
Jenkins Overview
 
Continuous integration
Continuous integrationContinuous integration
Continuous integration
 
Jenkins
JenkinsJenkins
Jenkins
 
Jenkins
JenkinsJenkins
Jenkins
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
Jenkins tutorial
Jenkins tutorialJenkins tutorial
Jenkins tutorial
 
Devops | CICD Pipeline
Devops | CICD PipelineDevops | CICD Pipeline
Devops | CICD Pipeline
 
Jenkins tutorial for beginners
Jenkins tutorial for beginnersJenkins tutorial for beginners
Jenkins tutorial for beginners
 
Jenkins CI presentation
Jenkins CI presentationJenkins CI presentation
Jenkins CI presentation
 
Continuous Integration, Build Pipelines and Continuous Deployment
Continuous Integration, Build Pipelines and Continuous DeploymentContinuous Integration, Build Pipelines and Continuous Deployment
Continuous Integration, Build Pipelines and Continuous Deployment
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
 
Continuous Delivery with Jenkins
Continuous Delivery with JenkinsContinuous Delivery with Jenkins
Continuous Delivery with Jenkins
 
Jenkins.pdf
Jenkins.pdfJenkins.pdf
Jenkins.pdf
 
Continuous Delivery, Continuous Integration
Continuous Delivery, Continuous Integration Continuous Delivery, Continuous Integration
Continuous Delivery, Continuous Integration
 
CI/CD
CI/CDCI/CD
CI/CD
 
Jenkins
JenkinsJenkins
Jenkins
 

Ähnlich wie Yale Jenkins Show and Tell

Build software like a bag of marbles, not a castle of LEGO®
Build software like a bag of marbles, not a castle of LEGO®Build software like a bag of marbles, not a castle of LEGO®
Build software like a bag of marbles, not a castle of LEGO®
Hannes Lowette
 
Jenkins Evolutions - JEEConf 2012
Jenkins Evolutions - JEEConf 2012Jenkins Evolutions - JEEConf 2012
Jenkins Evolutions - JEEConf 2012
Anton Arhipov
 

Ähnlich wie Yale Jenkins Show and Tell (20)

Jenkins Meetup Pune
Jenkins Meetup PuneJenkins Meetup Pune
Jenkins Meetup Pune
 
Build software like a bag of marbles, not a castle of LEGO®
Build software like a bag of marbles, not a castle of LEGO®Build software like a bag of marbles, not a castle of LEGO®
Build software like a bag of marbles, not a castle of LEGO®
 
Why NXTware Remote for Jenkins
Why NXTware Remote for JenkinsWhy NXTware Remote for Jenkins
Why NXTware Remote for Jenkins
 
DevOps World | Jenkins World 2018 and The Future of Jenkins
DevOps World | Jenkins World 2018 and The Future of JenkinsDevOps World | Jenkins World 2018 and The Future of Jenkins
DevOps World | Jenkins World 2018 and The Future of Jenkins
 
JUC Europe 2015: From Virtual Machines to Containers: Achieving Continuous In...
JUC Europe 2015: From Virtual Machines to Containers: Achieving Continuous In...JUC Europe 2015: From Virtual Machines to Containers: Achieving Continuous In...
JUC Europe 2015: From Virtual Machines to Containers: Achieving Continuous In...
 
From Virtual Machines to Containers
From Virtual Machines to ContainersFrom Virtual Machines to Containers
From Virtual Machines to Containers
 
JOSA TechTalks - Docker in Production
JOSA TechTalks - Docker in ProductionJOSA TechTalks - Docker in Production
JOSA TechTalks - Docker in Production
 
Jenkinsconf Presentation - Advance jenkins management with multiple projects.
Jenkinsconf Presentation - Advance jenkins management with multiple projects.Jenkinsconf Presentation - Advance jenkins management with multiple projects.
Jenkinsconf Presentation - Advance jenkins management with multiple projects.
 
[WSO2Con EU 2018] Architecting for a Container Native Environment
[WSO2Con EU 2018] Architecting for a Container Native Environment[WSO2Con EU 2018] Architecting for a Container Native Environment
[WSO2Con EU 2018] Architecting for a Container Native Environment
 
The Future of System Administration
The Future of System AdministrationThe Future of System Administration
The Future of System Administration
 
An Introduction to Docker
An Introduction to DockerAn Introduction to Docker
An Introduction to Docker
 
ContainerDays NYC 2015: "Easing Your Way Into Docker: Lessons From a Journey ...
ContainerDays NYC 2015: "Easing Your Way Into Docker: Lessons From a Journey ...ContainerDays NYC 2015: "Easing Your Way Into Docker: Lessons From a Journey ...
ContainerDays NYC 2015: "Easing Your Way Into Docker: Lessons From a Journey ...
 
Container Days
Container DaysContainer Days
Container Days
 
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Seven Habits of Highly Effective Jenkins Users (2014 edition!)Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
 
Deploying your SaaS stack OnPrem
Deploying your SaaS stack OnPremDeploying your SaaS stack OnPrem
Deploying your SaaS stack OnPrem
 
Jenkins Evolutions - JEEConf 2012
Jenkins Evolutions - JEEConf 2012Jenkins Evolutions - JEEConf 2012
Jenkins Evolutions - JEEConf 2012
 
Introduction to jenkins for the net developer
Introduction to jenkins for the net developerIntroduction to jenkins for the net developer
Introduction to jenkins for the net developer
 
CI/CD with Openshift and Jenkins
CI/CD with Openshift and JenkinsCI/CD with Openshift and Jenkins
CI/CD with Openshift and Jenkins
 
Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
Sean schofield & Richard Lister, Spree Commerce_ Fearless deployment @ Open C...
 
Continuous integration for open source distros v 3.0
Continuous integration for open source distros v 3.0Continuous integration for open source distros v 3.0
Continuous integration for open source distros v 3.0
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Yale Jenkins Show and Tell

  • 1. Yale Jenkins Build and Deploy E Camden Fisher camden.fisher@yale.edu Technical Lead Unix Infrastructure and Virtualization
  • 3. Overview: How does Jenkins make life better? Without Jenkins With Jenkins ● Building is slow, error prone ● "fire and forget", consistent! ● Testing is onerous ● Testing is automated! ● Code coverage is onerous ● Code coverage is automated! ● Bugs caught later ● Bugs caught early and often! ● Devs worry about environments ● Devs worry about code! ● Lack of change control for ● Change control in the right deployments places for deployments! ● Slow progress ● Rapid progress! Agility! ● Different artifact per environment ● Identical artifact per ● Inconsistent configuration per environment! environment ● Identical configuration per ● Deployments are "hard" environments! ● Integration Hell ● Deployments are easy! "Click!" ● Integration Nirvana
  • 4. Continuous Integration Continuous Integration is a software development practice ○ Maintain a Single Source Repository ○ Automate the Build ○ Make Your Build Self-Testing ○ Everyone Commits To the Mainline Every Day ○ Every Commit Should Build the Mainline on an Integration Machine ○ Keep the Build Fast ○ Test in a Clone of the Production Environment ○ Make it Easy for Anyone to Get the Latest Executable ○ Everyone can see what's happening ○ Automate Deployment Avoid "Integration Hell!!"
  • 5. What is Jenkins? Jenkins is an application and a framework that manages and monitors the execution of repeated tasks.
  • 6. Why Jenkins? ● Easy! ● Extensible ● Scalable ● Flexible ● Open Source ● Supported by Cloudbees
  • 7. History Lesson: Application lifecycle is a progression ● Source Code Management ● Maven and Artifactory ● Building and Testing with Jenkins ● Container Configurable artifacts ● Managed deployments with Jenkins
  • 8. Source Control Management ● Islands of SCM begat central SCM (subversion) ○ Single source repository! ○ Easy to get access. ○ Easy to onboard. ○ Easy to support. ○ Everyone wins!
  • 9. Maven and Artifactory ● Maven ○ Project Object Model (POM) ○ Simplifies dependency resolution ("oops I forgot that .jar!") ○ Makes the build process easy and uniform ● Artifactory (Maven Repository) ○ Where do I put my built artifacts? ○ Makes it easy for everyone to get the latest build!
  • 10. Builds without Jenkins ● Builds take a long time ● Automated Testing takes longer! ● Code coverage reports take even longer! ● Result: developers don't build, test or report on their code regularly enough because it's just too time consuming. ● Build environments are not standardized ○ my laptop has a different o/s, jvm, ruby version, gems, libraries, etc than yours ● Mistakes are caught later, harder to debug
  • 11. Builds with Jenkins ● SCM commits automatically kick off a build ○ Automate the build! ● Testing and code coverage is automated and is run on every commit. ○ Makes the Build Self-Testing! ● Broken builds immediately notify the team and the committer (Email, IRC, IM, Taskbar, etc) ● Tests run in a Clone of the Production Environment! ● Everyone can easily see what's happening! ● Developers can get back to coding instead of building and testing. ● Releases are quick and easy
  • 12.
  • 13. Container Configurable Artifacts ● Artifacts were built with configuration information embedded inside them. ○ ie. datasources, CAS service endpoints, etc ○ Artifacts are different per environment! What!? ○ "Oops, I forgot to update that parameter!" ● Externalization of configuration parameters ○ deployable XML ○ Apps self configure with JNDI ● Now we have Container Configurable artifacts ○ The SAME artifact migrates between environments ○ XML configuration data is all that differentiates environments ● Vendor-lock-in-less PaaS plug
  • 14. Deployments without Jenkins ● Choice between loss of control or loss of agility ○ Either devs can edit deployables or they can't ○ Often devs can configure the container ● If they can... ○ Code is deployed, edited and removed without Change Control ○ "I'll clean it up later!" ○ Dev environments quickly diverge from Production ○ Security is compromised ■ Elevated privileges on servers ■ Shell management on servers ● If they can't... ○ Change requests are "slow", systems groups must do everything
  • 15. Deployments with Jenkins ● Consistency! ● Jenkins writes configuration XML ● Developers can deploy to DEV at will ● Eliminate shells, and elevated privileges on servers ● Container is managed by infrastructure with the O/S ● Empowers developers to GTD ● Puts gates at appropriate places ● Changes to the Jenkins jobs require change control ● Frees Systems folks to work on more interesting things ● Workflow integration with Kintana
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. Non-Java languages This all applies to Non-Java projects too! Php ○ Continuous deployment to DEV for Drupal ○ Code coverage and unit testing available Ruby ○ Automated unit testing ○ Automated code coverage ○ Automated deployment coming soon .Net ○ Build, unit test, archive creation
  • 23. The future... ● RBAC + folders ○ delegate responsibility to other systems groups ● More ruby ○ unit testing and code coverage ○ deployments ● Enterprise Service Bus ● Cloud deployments
  • 24. Questions? E Camden Fisher Technical Lead Unix Infrastructure and Virtualization camden.fisher@yale.edu @fishnix