SlideShare uma empresa Scribd logo
1 de 34
Continuous Integration 
(Jenkins) 
Ahmed Gomaa 
22nd Oct 2014
2 
Agenda 
• What’s Continuous Integration 
• Jenkins 
–Features 
–Plugin 
–Security Management 
• Demo 
• Q&A
3 
What’s Continuous 
Integration? 
• In software engineering, continuous integration (CI) 
implements continuous processes of applying quality 
control - small pieces of effort, applied frequently. 
Continuous integration aims to improve the quality of 
software, and to reduce the time taken to deliver it, by 
replacing the traditional practice of applying quality 
control after completing all development. 
Ref: http://en.wikipedia.org/wiki/Continuous_integration
4 
History 
• Continuous Integration emerged in the Extreme 
Programming (XP) community, and XP advocates 
Martin Fowler and Kent Beck first wrote about 
continuous integration circa 1999.
5 
Continuous Integration 
• Continuous Integration is a software development 
practice where members of a team integrate their 
work frequently, usually each person integrates at 
least daily - leading to multiple integrations per day. 
Each integration is verified by an automated build 
(including test) to detect integration errors as quickly 
as possible. 
-- Martin Fowler 
Ref: http://martinfowler.com/articles/continuousIntegration.html
Why Continuous Integration? 
• Integration is hard, effort increase 
exponentially with 
6 
– Number of components 
– Number of bugs 
– Time since last integration 
Ref: http://www.slideshare.net/carlo.bonamico/continuous-integration-with-hudson
Continuous Integration Benefit 
• Project Management 
7 
– Detect system development problems earlier 
– Reduce risks of cost, schedule, and budget 
• Code Quality 
– Measurable and visible code quality 
– Continuous automatic regression unit test
8
9 
Best Practice of CI 
• Single Source Repository. 
• Automate the Build and Test 
• Everyone Commits Every Day 
• Keep the Build Fast 
• Everyone can see what's happening 
• Automate Deployment (Optional)
10 
What’s Jenkins 
1.An open source CI server 
2.More then 85000 installations (May 2014) 
3.Plug-in extensibility (Over 900 plugins) 
4.MIT license
Continuous Integration Overview 
11 
Ref: http://www.javaworld.com/javaworld/jw-12-2008/images/CIOverview.jpg
12 
Jenkins Features 
• Trigger a build 
• Get source code from repository 
• Automatically build and test 
• Generate report & notify 
• Deploy 
• Distributed build
13 
Jenkins Requirement 
• Web Server (Tomcat, WebLogic, …) 
• Build tool (Maven, Ant) 
• SCM (Git, Svn, Cvs, …)
14 
Jenkins Plugins 
• Build triggers 
• Source code management 
• Build tools 
• Build notifiers 
• Build reports 
• Artifact uploaders 
• UI plugins 
• Authentication and user management
15 
Build Trigger 
• Manually click build button 
• Build periodically 
• Build whenever a SNAPSHOT 
dependency is built 
• Build after other projects are built 
• Poll SCM 
• IRC, Jabber, …
16 
Get Source Code (1/2) 
• CVS (build-in) 
• SVN (build-in) 
• GIT (requires Git) 
• ClearCase (requires ClearCase) 
• Mercurial, PVCS, VSS, …
17 
Get Source Code (2/2) 
• Get current snapshot 
• Get baseline (tag)
18 
Code Change History
19 
Build Tools 
• Java 
– Maven (build-in), Ant, Gradle 
• .Net 
– MSBuild, PowerShell 
• Shell script 
– Python, Ruby, Groovy
20 
Build Wrapper 
• Build name (version no) setter 
• Virtual machine (VMWare, Virtual Box) 
• Set environment variable 
• ClearCase release plugin 
• …
21 
Build Notifier 
• E-mail 
• Twitter 
• Jabber 
• IRC 
• RSS 
• Google calendar 
• …
22 
Build Report 
• Static Code Analysis 
– Checkstyle, PMD, Findbugs, Compiler 
Warning 
• Test Report & Code Coverage 
– JUnit, TestNG, Cobertura, Clover 
• Open Tasks
23 
CheckStyle
24 
FindBugs
25 
Test Report
26 
Test Code Coverage
27 
Artifact uploaders 
• Tomcat 
• JBoss 
• Glassfish 
• WebSphere 
• FTP 
• SSH
28 
UI Enhancement 
• Dashboard 
• Sectioned view 
• iPhone/Android
29 
Security Management 
• Security Realm 
– LDAP 
– Jenkins's own user database 
– Delegate to servlet container 
• Authorization 
– Anyone can do anything 
– Logged-in users can do anything 
– Matrix-based security 
– Project-based Matrix Authorization Strategy 
– Legacy mode
30 
Security Management 
• Matrix-based security 
• Project-based Matrix Authorization
Security Management Plugins 
• Active directory, OpenID, MySQL, … 
• Role based privilege control 
31
32 
Plugin Usage Statistics 
Ref: http://jenkins-ci.org/content/updated-usage-stats-available
Demo
34 
Questions & Answers

Mais conteúdo relacionado

Mais procurados

Continuous integration
Continuous integrationContinuous integration
Continuous integration
amscanne
 

Mais procurados (20)

Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkins
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
Jenkins tutorial
Jenkins tutorialJenkins tutorial
Jenkins tutorial
 
CI and CD with Jenkins
CI and CD with JenkinsCI and CD with Jenkins
CI and CD with Jenkins
 
Jenkins for java world
Jenkins for java worldJenkins for java world
Jenkins for java world
 
CICD with Jenkins
CICD with JenkinsCICD with Jenkins
CICD with Jenkins
 
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
 
CICD with Jenkins
CICD with JenkinsCICD with Jenkins
CICD with Jenkins
 
Introduction to CI/CD
Introduction to CI/CDIntroduction to CI/CD
Introduction to CI/CD
 
Jenkins
JenkinsJenkins
Jenkins
 
Continuous Delivery with Jenkins
Continuous Delivery with JenkinsContinuous Delivery with Jenkins
Continuous Delivery with Jenkins
 
Build CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation SlidesBuild CICD Pipeline for Container Presentation Slides
Build CICD Pipeline for Container Presentation Slides
 
Continuous integration
Continuous integrationContinuous integration
Continuous integration
 
Jenkins-CI
Jenkins-CIJenkins-CI
Jenkins-CI
 
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
JenkinsJenkins
Jenkins
 
Gitlab ci-cd
Gitlab ci-cdGitlab ci-cd
Gitlab ci-cd
 
Hacking Jenkins
Hacking JenkinsHacking Jenkins
Hacking Jenkins
 
CI/CD Overview
CI/CD OverviewCI/CD Overview
CI/CD Overview
 
Getting started with Jenkins
Getting started with JenkinsGetting started with Jenkins
Getting started with Jenkins
 

Semelhante a Jenkins Overview

Apache Continuum Build, Test, and Release
Apache Continuum Build, Test, and ReleaseApache Continuum Build, Test, and Release
Apache Continuum Build, Test, and Release
elliando dias
 
Continuous deployment steve povilaitis
Continuous deployment   steve povilaitisContinuous deployment   steve povilaitis
Continuous deployment steve povilaitis
Steve Povilaitis
 
Continuous delivery applied
Continuous delivery appliedContinuous delivery applied
Continuous delivery applied
Mike McGarr
 

Semelhante a Jenkins Overview (20)

Continuous Integration with Jenkins and Java EE
Continuous Integration with Jenkins and Java EEContinuous Integration with Jenkins and Java EE
Continuous Integration with Jenkins and Java EE
 
Continuous Integration for OpenVMS with Jenkins
Continuous Integration for OpenVMS with JenkinsContinuous Integration for OpenVMS with Jenkins
Continuous Integration for OpenVMS with Jenkins
 
Test-Driven-Development for Networking: Making CI Work for You by Colin McNam...
Test-Driven-Development for Networking: Making CI Work for You by Colin McNam...Test-Driven-Development for Networking: Making CI Work for You by Colin McNam...
Test-Driven-Development for Networking: Making CI Work for You by Colin McNam...
 
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
 
Software Delivery in 2016 - A Continuous Delivery Approach
Software Delivery in 2016 - A Continuous Delivery ApproachSoftware Delivery in 2016 - A Continuous Delivery Approach
Software Delivery in 2016 - A Continuous Delivery Approach
 
Continuous Delivery Applied (AgileDC)
Continuous Delivery Applied (AgileDC)Continuous Delivery Applied (AgileDC)
Continuous Delivery Applied (AgileDC)
 
Apache Continuum Build, Test, and Release
Apache Continuum Build, Test, and ReleaseApache Continuum Build, Test, and Release
Apache Continuum Build, Test, and Release
 
Continuous deployment steve povilaitis
Continuous deployment   steve povilaitisContinuous deployment   steve povilaitis
Continuous deployment steve povilaitis
 
Continuous Everything v2.0
Continuous Everything v2.0Continuous Everything v2.0
Continuous Everything v2.0
 
Continuous delivery applied (DC CI User Group)
Continuous delivery applied (DC CI User Group)Continuous delivery applied (DC CI User Group)
Continuous delivery applied (DC CI User Group)
 
Devops architecture
Devops architectureDevops architecture
Devops architecture
 
Why NXTware Remote for Jenkins
Why NXTware Remote for JenkinsWhy NXTware Remote for Jenkins
Why NXTware Remote for Jenkins
 
Continuous delivery applied
Continuous delivery appliedContinuous delivery applied
Continuous delivery applied
 
Contineous integration
Contineous integrationContineous integration
Contineous integration
 
Continuous Deployment into the Unknown with Artifactory, Bintray, Docker and ...
Continuous Deployment into the Unknown with Artifactory, Bintray, Docker and ...Continuous Deployment into the Unknown with Artifactory, Bintray, Docker and ...
Continuous Deployment into the Unknown with Artifactory, Bintray, Docker and ...
 
Build Time Hacking
Build Time HackingBuild Time Hacking
Build Time Hacking
 
Test parallelization using Jenkins
Test parallelization using JenkinsTest parallelization using Jenkins
Test parallelization using Jenkins
 
Hudson
HudsonHudson
Hudson
 
Continuous integration
Continuous integrationContinuous integration
Continuous integration
 
Continuous Everything
Continuous EverythingContinuous Everything
Continuous Everything
 

Último

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Último (20)

WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 

Jenkins Overview

  • 1. Continuous Integration (Jenkins) Ahmed Gomaa 22nd Oct 2014
  • 2. 2 Agenda • What’s Continuous Integration • Jenkins –Features –Plugin –Security Management • Demo • Q&A
  • 3. 3 What’s Continuous Integration? • In software engineering, continuous integration (CI) implements continuous processes of applying quality control - small pieces of effort, applied frequently. Continuous integration aims to improve the quality of software, and to reduce the time taken to deliver it, by replacing the traditional practice of applying quality control after completing all development. Ref: http://en.wikipedia.org/wiki/Continuous_integration
  • 4. 4 History • Continuous Integration emerged in the Extreme Programming (XP) community, and XP advocates Martin Fowler and Kent Beck first wrote about continuous integration circa 1999.
  • 5. 5 Continuous Integration • Continuous Integration is a software development practice where members of a team integrate their work frequently, usually each person integrates at least daily - leading to multiple integrations per day. Each integration is verified by an automated build (including test) to detect integration errors as quickly as possible. -- Martin Fowler Ref: http://martinfowler.com/articles/continuousIntegration.html
  • 6. Why Continuous Integration? • Integration is hard, effort increase exponentially with 6 – Number of components – Number of bugs – Time since last integration Ref: http://www.slideshare.net/carlo.bonamico/continuous-integration-with-hudson
  • 7. Continuous Integration Benefit • Project Management 7 – Detect system development problems earlier – Reduce risks of cost, schedule, and budget • Code Quality – Measurable and visible code quality – Continuous automatic regression unit test
  • 8. 8
  • 9. 9 Best Practice of CI • Single Source Repository. • Automate the Build and Test • Everyone Commits Every Day • Keep the Build Fast • Everyone can see what's happening • Automate Deployment (Optional)
  • 10. 10 What’s Jenkins 1.An open source CI server 2.More then 85000 installations (May 2014) 3.Plug-in extensibility (Over 900 plugins) 4.MIT license
  • 11. Continuous Integration Overview 11 Ref: http://www.javaworld.com/javaworld/jw-12-2008/images/CIOverview.jpg
  • 12. 12 Jenkins Features • Trigger a build • Get source code from repository • Automatically build and test • Generate report & notify • Deploy • Distributed build
  • 13. 13 Jenkins Requirement • Web Server (Tomcat, WebLogic, …) • Build tool (Maven, Ant) • SCM (Git, Svn, Cvs, …)
  • 14. 14 Jenkins Plugins • Build triggers • Source code management • Build tools • Build notifiers • Build reports • Artifact uploaders • UI plugins • Authentication and user management
  • 15. 15 Build Trigger • Manually click build button • Build periodically • Build whenever a SNAPSHOT dependency is built • Build after other projects are built • Poll SCM • IRC, Jabber, …
  • 16. 16 Get Source Code (1/2) • CVS (build-in) • SVN (build-in) • GIT (requires Git) • ClearCase (requires ClearCase) • Mercurial, PVCS, VSS, …
  • 17. 17 Get Source Code (2/2) • Get current snapshot • Get baseline (tag)
  • 18. 18 Code Change History
  • 19. 19 Build Tools • Java – Maven (build-in), Ant, Gradle • .Net – MSBuild, PowerShell • Shell script – Python, Ruby, Groovy
  • 20. 20 Build Wrapper • Build name (version no) setter • Virtual machine (VMWare, Virtual Box) • Set environment variable • ClearCase release plugin • …
  • 21. 21 Build Notifier • E-mail • Twitter • Jabber • IRC • RSS • Google calendar • …
  • 22. 22 Build Report • Static Code Analysis – Checkstyle, PMD, Findbugs, Compiler Warning • Test Report & Code Coverage – JUnit, TestNG, Cobertura, Clover • Open Tasks
  • 26. 26 Test Code Coverage
  • 27. 27 Artifact uploaders • Tomcat • JBoss • Glassfish • WebSphere • FTP • SSH
  • 28. 28 UI Enhancement • Dashboard • Sectioned view • iPhone/Android
  • 29. 29 Security Management • Security Realm – LDAP – Jenkins's own user database – Delegate to servlet container • Authorization – Anyone can do anything – Logged-in users can do anything – Matrix-based security – Project-based Matrix Authorization Strategy – Legacy mode
  • 30. 30 Security Management • Matrix-based security • Project-based Matrix Authorization
  • 31. Security Management Plugins • Active directory, OpenID, MySQL, … • Role based privilege control 31
  • 32. 32 Plugin Usage Statistics Ref: http://jenkins-ci.org/content/updated-usage-stats-available
  • 33. Demo
  • 34. 34 Questions & Answers

Notas do Editor

  1. Regression
  2. Regression
  3. Regression