Jenkins Continuous Integration Cookbook
Formats:
save 15%!
save 37%!
Free Shipping!
| Also available on: |
|
- Explore the use of more than 40 best of breed plugins
- Use code quality metrics, integration testing through functional and performance testing to measure the quality of your software
- Get a problem-solution approach enriched with code examples for practical and easy comprehension
Book Details
Language : EnglishPaperback : 344 pages [ 235mm x 191mm ]
Release Date : June 2012
ISBN : 1849517401
ISBN 13 : 9781849517409
Author(s) : Alan Mark Berg
Topics and Technologies : All Books, Cookbooks, Java, Open Source
Table of Contents
PrefaceChapter 1: Maintaining Jenkins
Chapter 2: Enhancing Security
Chapter 3: Building Software
Chapter 4: Communicating Through Jenkins
Chapter 5: Using Metrics to Improve Quality
Chapter 6: Testing Remotely
Chapter 7: Exploring Plugins
Appendix: Processes that Improve Quality
Index
- Chapter 1: Maintaining Jenkins
- Introduction
- Using a sacrificial Jenkins instance
- Backing up and restoring
- Modifying Jenkins configuration from the command line
- Reporting overall disc usage
- Deliberately failing builds through log parsing
- A Job to warn about the disc usage violations through log parsing
- Keeping in contact with Jenkins through Firefox
- Monitoring through JavaMelody
- Keeping a track of the script glue
- Scripting the Jenkins command-line interface
- Global modifications of Jobs with Groovy
- Signaling the need to archive
- Chapter 2: Enhancing Security
- Introduction
- Testing for OWASP's top ten security issues
- Finding 500 errors and XSS attacks in Jenkins through fuzzing
- Improving security via small configuration changes
- Looking at the Jenkins user through Groovy
- Working with the Audit Trail plugin
- Installing OpenLDAP with a test user and group
- Using Script Realm authentication for provisioning
- Reviewing project-based matrix tactics via a custom group script
- Administering OpenLDAP
- Configuring the LDAP plugin
- Installing a CAS server
- Enabling SSO in Jenkins
- Chapter 3: Building Software
- Introduction
- Plotting alternative code metrics in Jenkins
- Running Groovy scripts through Maven
- Manipulating environmental variables
- Running AntBuilder through Groovy in Maven
- Failing Jenkins Jobs based on JSP syntax errors
- Configuring Jetty for integration tests
- Looking at license violations with RATs
- Reviewing license violations from within Maven
- Exposing information through build descriptions
- Reacting to the generated data with the Post-build Groovy plugin
- Remotely triggering Jobs through the Jenkins API
- Adaptive site generation
- Chapter 4: Communicating Through Jenkins
- Introduction
- Skinning Jenkins with the Simple Theme plugin
- Skinning and provisioning Jenkins using a WAR overlay
- Generating a home page
- Creating HTML reports
- Efficient use of views
- Saving screen space with the Dashboard plugin
- Making noise with HTML5 browsers
- An eXtreme view for reception areas
- Mobile presentation using Google Calendar
- Tweeting the world
- Mobile apps for Android and iOS
- Getting to know your audience with Google Analytics
- Chapter 5: Using Metrics to Improve Quality
- Introduction
- Estimating the value of your project through Sloccount
- Looking for "smelly" code through code coverage
- Activating more PMD rulesets
- Creating custom PMD rules
- Finding bugs with FindBugs
- Enabling extra FindBugs rules
- Finding security defects with FindBugs
- Verifying HTML validity
- Reporting with JavaNCSS
- Checking style using an external pom.xml
- Faking checkstyle results
- Integrating Jenkins with Sonar
- Chapter 6: Testing Remotely
- Introduction
- Deploying a WAR file from Jenkins to Tomcat
- Creating multiple Jenkins nodes
- Testing with Fitnesse
- Activating Fitnesse HtmlUnit Fixtures
- Running Selenium IDE tests
- Triggering Failsafe integration tests with Selenium Webdriver
- Creating JMeter test plans
- Reporting JMeter performance metrics
- Functional testing using JMeter assertions
- Enabling Sakai web services
- Writing test plans with SoapUI
- Reporting SoapUI test results
- Chapter 7: Exploring Plugins
- Introduction
- Personalizing Jenkins
- Testing and then promoting
- Fun with pinning JS Games
- Looking at the GUI Samples plugin
- Changing the help of the file system scm plugin
- Adding a banner to Job descriptions
- Creating a RootAction plugin
- Exporting data
- Triggering events on startup
- Triggering events when web content changes
- Reviewing three ListView plugins
- Creating my first ListView plugin
- Appendix: Processes that Improve Quality
- Avoiding group think
- Considering test automation as a software project
- Offsetting work to Jenkins nodes
- Learning from history
- Test frameworks are emerging
- Starve QA/ integration servers
- And there's always more
- Final comments
Alan Mark Berg
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- Maintain and secure Jenkins
- Integrate Jenkins with LDAP and SSO solutions
- Run an integration server to fire automatic functional and performance tests
- Communicate through social media and plot custom data
- Skin Jenkins to your corporate look and feel
- Refine the use of code metrics to improve quality
- Write your first custom Jenkins plugin
- Apply several tweaks to optimize your use of Jenkins
Jenkins is a highly popular continuous integration server. Its correct use supports a quality software development process. Jenkins is great at finding issues in software early and communicating it to a wide audience. Jenkins is also easily extendable with a simple framework for writing plugins. Currently there are over 400 plugins available for inclusion.
Jenkins Continuous Integration Cookbook has over 80 recipes describing practical ways to use Jenkins and expanding its feature set by selective use of the best of breed plugins. Jenkins has a simple framework for writing plugins. There are over 400 plugins available. Therefore, it is easy to get lost in possibilities. Using practical recipes, this book will guide you through the complexities. The recipes are bundled into themes including security, maintainability, communication, building software, the valid use of code metrics, testing remotely, and writing your first plugin.
Jenkins Continuous Integration Cookbook includes problem solving and how to do recipes for many common and less common tasks. A wide range of topics are covered from integrating, securing, and maintaining Jenkins in your organization to writing your first extension.
The book begins with common maintenance tasks followed by securing Jenkins and enabling SSO. Then it explores the relationship between Jenkins builds and the Maven pom.xml. You will then learn ways to effectively communicate with various target audiences (developers, project managers, the public). You will then explore source code metrics with related recipes, and set up and run remote stress and functional tests. The book finally lists a series of 11 interesting plugins with a concluding recipe on how to create your first plugin.
Jenkins Continuous Integration Cookbook describes solutions and optimizations to problems commonly found.
This book provides a problem-solution approach to some common tasks and some uncommon tasks using Jenkins and is well-illustrated with practical code examples.
If you are a Java developer, software architect, technical project manager, build manager, or development or QA engineer, this book is for you.
You should have a basic understanding of the Software Development Life Cycle and Java development, as well as a rudimentary understanding of Jenkins.

