Book description
Get a problem-solution approach enriched with code examples for practical and easy comprehension
About This Book
- Explore the use of more than 40 best-of-breed plug-ins for improving efficiency
- Secure and maintain Jenkins 2.x by integrating it with LDAP and CAS, which is a Single Sign-on solution
- Efficiently build advanced pipelines with pipeline as code, thus increasing your team's productivity
Who This Book Is For
If you are a Java developer, a software architect, a technical project manager, a build manager, or a development or QA engineer, then this book is ideal for you. A basic understanding of the software development life cycle and Java development is needed, as well as a rudimentary understanding of Jenkins.
What You Will Learn
- Install and Configure Jenkins 2.x on AWS and Azure
- Explore effective ways to manage and monitor Jenkins 2.x
- Secure Jenkins 2.x using Matrix-based Security
- Deploying a WAR file from Jenkins 2.x to Azure App Services and AWS Beanstalk
- Automate deployment of application on AWS and Azure PaaS
- Continuous Testing – Unit Test Execution, Functional Testing and Load Testing
In Detail
Jenkins 2.x is one of the most popular Continuous Integration servers in the market today. It was designed to maintain, secure, communicate, test, build, and improve the software development process.
This book will begin by guiding you through steps for installing and configuring Jenkins 2.x on AWS and Azure. This is followed by steps that enable you to manage and monitor Jenkins 2.x. You will also explore the ways to enhance the overall security of Jenkins 2.x. You will then explore the steps involved in improving the code quality using SonarQube. Then, you will learn the ways to improve quality, followed by how to run performance and functional tests against a web application and web services.
Finally, you will see what the available plugins are, concluding with best practices to improve quality.
Style and approach
This book provides a problem-solution approach to some common tasks and some uncommon tasks using Jenkins 2.x and is well-illustrated with practical code examples.
Table of contents
- Preface
-
Getting Started with Jenkins
- Introduction
- Installing Jenkins 2 on Windows
- Installing Jenkins 2 on CentOS
- Installing Jenkins 2 on Azure
- Installing Jenkins as a Service in Windows
- Installing plugins in Jenkins
- Uploading plugins in Jenkins
- Configuring proxy in Jenkins
- Configuring global settings in Jenkins
- Configuring JENKINS_HOME
- Understanding JENKINS_HOME directory
- Using different ports for Jenkins
- Configuring JAVA_HOME in Jenkins
- Configuring Git in Jenkins
- Configuring ANT_HOME in Jenkins
- Configuring MAVEN_HOME in Jenkins
- Configuring GRADLE_HOME in Jenkins
- Creating a Freestyle job for Ant Project
- Creating a Maven Job for Maven Project
-
Management and Monitoring of Jenkins
- Understanding master/agent architecture
- Managing Jenkins build jobs using Eclipse
- Backing up and restoring Jenkins
- Command-line options in Jenkins using Jenkins CLI
- Modifying the Jenkins configuration from the command line
- Managing disk usage
- Shutdown Jenkins safely
- Monitoring Jenkins with JavaMelody
- Monitoring a Jenkins Job using a Build Monitor View
- Configuring mail notifications
- Signaling the need to archive
-
Managing Security
- Introduction
- Improving security with Jenkins configuration
- Configuring Authorization - Matrix-based security
- Configuring a Project-based Matrix Authorization Strategy
- Jenkins and OpenLDAP integration
- Jenkins and Active Directory integration
- Jenkins and OWASP Zed Attack Proxy integration
- Testing for OWASP's top 10 security issues
- Finding 500 errors and XSS attacks in Jenkins through fuzzing
- Avoiding sign-up bots with JCaptcha
- Improving Code Quality
-
Building Applications in Jenkins
- Introduction
- Configuring an Ant project for execution
- Configuring a Maven project for execution
- Configuring an Android project for execution
- Manipulating environmental variables
- Running Ant through Groovy in Maven
- Failed Jenkins jobs based on JSP syntax errors
- Remotely triggering jobs through the Jenkins API
- Continuous Delivery
-
Continuous Testing
- Getting started with continuous testing
- Creating a Selenium test case using Eclipse
- Integrating Jenkins and Selenium for functional testing
- Jenkins and Cucumber test reports
- Creating a load test in Apache JMeter
- Executing a load test from Jenkins
- Reporting JMeter performance metrics
- Testing with FitNesse
- Orchestration
-
Jenkins UI Customization
- Introduction
- Skinning Jenkins with the simple themes 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 View plugin
- Making noise with HTML5 browsers
- An extreme view for reception areas
-
Processes that Improve Quality
- Culture and collaboration
- Fail early or fail faster
- Data-driven testing
- Learning from history
- Considering test automation as a software project
- Visualize, visualize, and visualize!
- Conventions are good
- Test frameworks and commercial choices are increasing
- Offsetting work to Jenkins nodes
- Starving QA/integration servers
- Reading the change log of Jenkins
- Avoiding human bottlenecks
- Avoiding groupthink
- Training and community
- Visibly rewarding successful developers
- Stability and code maintenance
- Resources on quality assurance
- And there's always more
- Final comments
Product information
- Title: Jenkins 2.x Continuous Integration Cookbook - Third Edition
- Author(s):
- Release date: October 2017
- Publisher(s): Packt Publishing
- ISBN: 9781788297943
You might also like
book
Extending Jenkins
Get a complete walkthrough of the many interfaces available in Jenkins with the help of real-world …
video
Hands-On Continuous Integration and Automation with Jenkins
In agile development practices, developers need to integrate their work frequently to fix bugs or to …
book
Beginning Jenkins Blue Ocean: Create Elegant Pipelines With Ease
Dive deep into Jenkins Blue Ocean and discover how easy creating a pipeline can be. You’ll …
book
Pro Continuous Delivery: With Jenkins 2.0
Follow this step-by-step guide for creating a continuous delivery pipeline using all of the new features …